Skip to content

ranger

A Fast Implementation of Random Forests

v0.18.0 · Jan 16, 2026 · GPL-3

Description

A fast implementation of Random Forests, particularly suited for high dimensional data. Ensembles of classification, regression, survival and probability prediction trees are supported. Data from genome-wide association studies can be analyzed efficiently. In addition to data frames, datasets of class 'gwaa.data' (R package 'GenABEL') and 'dgCMatrix' (R package 'Matrix') can be directly analyzed.

Downloads

CRAN

55.9K

Last 30 days

470th

196.2K

Last 90 days

1M

Last year

Trend: -20.9% (30d vs prior 30d)

r2u CRAN

9.3K

Last 30 days

12.5K

Last 90 days

19.2K

Last year

Trend: +288.1% (30d vs prior 30d)

autoCRAN

3

Last 7 days

19

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

conda-forge CRAN

1.7K

Last 30 days

5.4K

Last 90 days

21.7K

Last year

Trend: -4.7% (30d vs prior 30d)

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 19, 2026
WARNING 12 OK · 0 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE Jun 17, 2026
WARNING r-oldrel-windows-x86_64

for unstated dependencies in ‘tests’

Warning: unable to access index for repository https://bioconductor.org/packages/3.22/bioc/src/contrib:
  cannot open URL 'https://bioconductor.org/packages/3.22/bioc/src/contrib/PACKAGES'
Warning: unable to access index for repository https://biocon
...[truncated]...
2/data/annotation/src/contrib/PACKAGES'
Warning: unable to access index for repository https://bioconductor.org/packages/3.22/data/experiment/src/contrib:
  cannot open URL 'https://bioconductor.org/packages/3.22/data/experiment/src/contrib/PACKAGES'
OK 12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 25, 2026
NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 22, 2026
NOTE r-oldrel-macos-arm64

installed package size

installed size is  8.0Mb
  sub-directories of 1Mb or more:
    libs   7.7Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is  8.1Mb
  sub-directories of 1Mb or more:
    libs   7.8Mb
ERROR 11 OK · 2 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 18, 2026
ERROR r-devel-windows-x86_64

whether package can be installed

Installation failed.
See 'd:/Rcompile/CRANpkg/local/4.6/ranger.Rcheck/00install.out' for details.
NOTE r-oldrel-macos-arm64

installed package size

installed size is  8.0Mb
  sub-directories of 1Mb or more:
    libs   7.7Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is  8.1Mb
  sub-directories of 1Mb or more:
    libs   7.8Mb
NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-oldrel-macos-arm64

installed package size

installed size is  8.0Mb
  sub-directories of 1Mb or more:
    libs   7.7Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is  8.1Mb
  sub-directories of 1Mb or more:
    libs   7.8Mb

Code

Structure

Lines of code

20,993

Files

117

Compiled share

59%

Has compiled src

Yes

Language breakdown

R 3,313 (15.8%)C/C++/src 12,393 (59%)Tests 4,194 (20%)Docs 1,093 (5.2%)

API

Exported functions

11

Internal functions

32

Recent export changes

v0.9.0+1 treeInfo
v0.5.0+2 holdoutRF, importance_pvalues

Testing & CI

Has tests

Yes

Test-to-code ratio

1.27

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

0%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

0%

Unsafe pattern score

3

Dep constraint coverage

50%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

3.1

System requirements

C++ standard

License

GPL-3

License flags

SPDX valid, OSI approved

History

Versions

22

First release

2015-07-28

Latest release

2026-01-16

Avg cadence

149 days

Cold removal rate

100%

Dep drift

1

LOC over versions

v0.2.6: 8,348 LOCv0.2.7: 8,348 LOCv0.3.0: 8,807 LOCv0.4.0: 9,618 LOCv0.5.0: 11,116 LOCv0.6.0: 11,451 LOCv0.7.0: 13,123 LOCv0.8.0: 13,595 LOCv0.9.0: 14,992 LOCv0.10.0: 15,591 LOCv0.10.1: 15,589 LOCv0.11.0: 16,107 LOCv0.11.1: 16,109 LOCv0.11.2: 16,078 LOCv0.12.0: 17,657 LOCv0.12.1: 17,657 LOCv0.13.1: 17,792 LOCv0.14.1: 18,147 LOCv0.15.1: 18,301 LOCv0.16.0: 18,801 LOCv0.17.0: 20,955 LOCv0.18.0: 20,993 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Reverse Dependencies (255)

Dependency Network

Dependencies Reverse dependencies Rcpp Matrix ClassificationEnsembles LogisticEnsembles OptHoldoutSize PKLMtest RfEmpImp SPARRAfairness causalweight multimedia tuneRanger ADAPTS AmpGram AmyloGram AnimalSequences AntsNet C443 +240 more reverse deps ranger

Version History

23 tracked
new 0.18.0 Mar 10, 2026
updated 0.18.0 ← 0.17.0 diff Jan 15, 2026
updated 0.17.0 ← 0.16.0 diff Nov 7, 2024
updated 0.16.0 ← 0.15.1 diff Nov 11, 2023
updated 0.15.1 ← 0.14.1 diff Apr 2, 2023
updated 0.14.1 ← 0.13.1 diff Jun 17, 2022
updated 0.13.1 ← 0.12.1 diff Jul 13, 2021
updated 0.12.1 ← 0.12.0 diff Jan 9, 2020
updated 0.12.0 ← 0.11.2 diff Jan 8, 2020
updated 0.11.2 ← 0.11.1 diff Mar 6, 2019
updated 0.11.1 ← 0.11.0 diff Jan 23, 2019
updated 0.11.0 ← 0.10.1 diff Jan 20, 2019
updated 0.10.1 ← 0.10.0 diff Jun 3, 2018
updated 0.10.0 ← 0.9.0 diff May 28, 2018
updated 0.9.0 ← 0.8.0 diff Jan 8, 2018