Fast Serializable Random Forests Based on 'ranger'
Overview
An updated implementation of R package 'ranger' by Wright et al, (2017) doi:10.18637/jss.v077.i01 for training and predicting from random forests, particularly suited to high-dimensional data, and for embedding in 'Multiple Imputation by Chained Equations' (MICE) by van Buuren (2007) doi:10.1177/0962280206074463. Ensembles of classification and regression trees are currently supported. Sparse data of class 'dgCMatrix' (R package 'Matrix') can be directly analyzed. Conventional bagged predictions are available alongside an efficient prediction for MICE via the algorithm proposed by Doove et al (2014) doi:10.1016/j.csda.2013.10.025. Trained forests can be written to and read from storage. Survival and probability forests are not supported in the update, nor is data of class 'gwaa.data' (R package 'GenABEL'); use the original 'ranger' package for these analyses.
Changed
- **Breaking** extensive refactor to literanger object in R; any objects serialized with versions < 0.2.0 cannot be deserialized with new release.
- Training speed improved via inlining and short-circuits; mileage may vary but 10-15% faster is expected.
Added
- A merge() function to merge trained forests.
From NEWS.md in the release
Install
Health
WARNINGwhether package can be installedr-devel-windows-x86_64, r-release-windows-x86_64
r-devel-windows-x86_64
Found the following significant warnings: D:/rtools45/x86_64-w64-mingw32.static.posix/lib/gcc/x86_64-w64-mingw32.static.posix/14.3.0/include/c++/bits/stl_algobase.h:452:30: warning: 'void* __builtin_memmove(void*, const void*, long long unsigned int)' forming offset 8 is out of the bounds [0, 8] [-Warray-bounds=] See 'd:/Rcompile/CRANpkg/local/4.7/literanger.Rcheck/00install.out' for details. * used C++ compiler: 'g++.exe (GCC) 14.3.0'
r-release-windows-x86_64
Found the following significant warnings: D:/rtools45/x86_64-w64-mingw32.static.posix/lib/gcc/x86_64-w64-mingw32.static.posix/14.3.0/include/c++/bits/stl_algobase.h:452:30: warning: 'void* __builtin_memmove(void*, const void*, long long unsigned int)' forming offset 8 is out of the bounds [0, 8] [-Warray-bounds=] See 'd:/Rcompile/CRANpkg/local/4.6/literanger.Rcheck/00install.out' for details. * used C++ compiler: 'g++.exe (GCC) 14.3.0'
- WARNING11 OK, 2 WARNINGNow
- WARNING11 OK, 2 NOTE, 1 WARNING2026-03-10
Documentation
- Help pages
- 6 (1 internal)includes a package overview page
- Examples that run
- 100%4 run in a plain check
- Exported functions with examples
- 67%
- Documented parameters
- 98%
- Return-value docs
- 67%
- Help pages citing references
- 50%
Downloads
Repository
Repository gitlab.com/stephematician/literanger is linked, but repository-practices checks have not run for it yet. Checks are GitHub-only for now.
Dependencies
Installing literanger adds 2 packages (0 with compiled code, 559 KB of source tarballs). Heaviest: cpp11 298 KB, Rcereal 261 KB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 0.2.0Latest
- RR 4.5.0 released · 2025-04-11
- unarchivedReturned to CRAN2024-09-22
- 0.1.12024-09-22 · diff ↗
- archivedRemoved from CRAN2024-09-19issues were not corrected in time
- 0.1.0
- RR 4.4.0 released · 2024-04-24
- unarchivedReturned to CRAN2023-07-13
- 0.0.22023-07-13 · diff ↗
- archivedRemoved from CRAN2023-07-10issues were not corrected in time
- 0.0.12023-06-26
- RR 4.3.0 released · 2023-04-21
Package metadata
- First published
- 2023-06-26
- Total releases
- 5 / 3 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 3.6.0
- Download size
- 113 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("literanger")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-17, which the citation names so these numbers can be found later. More on citing and the projects behind them.