# ranger (R)

> Fast random forests for R and C++, suited to high-dimensional data

Source: https://talira.ai/catalog/ranger-r-aj79rspj
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Command-line tool
- Categories: [ai / ml / classical ml](https://talira.ai/categories/ai/ml/classical-ml), [languages / r](https://talira.ai/categories/languages/r)
- Licence: GPL-3.0-only[^1]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source (GPL-3.0-only).
- Free tier: yes[^1]
- Backed by: [Marvin N. Wright](https://talira.ai/orgs/marvin-n-wright.md)

ranger is a fast implementation of random forests, written in C++ with an R package that its author recommends using. It builds classification, regression, survival and probability forests, plus extremely randomized trees and quantile regression forests, and is aimed at high-dimensional data such as genome-wide association studies. Besides data frames it reads sparse dgCMatrix matrices directly. A standalone C++ command-line version can be built with CMake. Install the R package from CRAN as ranger.

## Links

- Website: https://imbs-hl.github.io/ranger/
- GitHub: https://github.com/imbs-hl/ranger
- Docs: https://imbs-hl.github.io/ranger/reference/index.html

## Problems it solves

- train a random forest in R on data with thousands of features
- fit a random survival forest in R
- random forests in R that are faster than randomForest

## Features

- classification, regression, survival and probability forests
- extremely randomized trees and quantile regression forests
- reads sparse dgCMatrix matrices directly
- multithreaded
- standalone C++ command-line version

## Trust

Overall: 0.34 out of 1.
Signals: maintenance 0.27, adoption 0.58, momentum 0.26, community 0.63, backing 0.30, extensibility 0.00.

- 819 GitHub stars
- 37 contributors
- accepts sponsorship (Github)
- backed by Marvin N. Wright

Warnings:

- last commit 10 months ago

## Alternatives

- [rpart](https://talira.ai/catalog/rpart-xk21snfd.md): Recursive partitioning for classification, regression and survival trees in R

## Sources

[^1]: https://github.com/imbs-hl/ranger/blob/master/DESCRIPTION (checked 29 Nov 2026)
