lorax: Speak for the Trees

Extracts decision rules from tree- and rule-based models fitted in 'R'. Rules are expressed as logical predicates that identify paths to terminal nodes, making model behavior more transparent and interpretable. Provides conversion methods to 'partykit' party objects for a wide range of model types. The 'partykit' infrastructure is described in Hothorn and Zeileis (2015) <https://jmlr.org/papers/v16/hothorn15a.html>.

Version: 0.1.0
Depends: R (≥ 4.3.0)
Imports: cli, dplyr, generics, partykit, purrr, rlang (≥ 1.1.0), tibble
Suggests: aorsf, C50, Cubist, dbarts, grf, knitr, lightgbm, modeldata, palmerpenguins, randomForest, ranger, rpart, spelling, testthat (≥ 3.0.0), tidyr, xgboost
Published: 2026-07-16
DOI: 10.32614/CRAN.package.lorax (may not be active yet)
Author: Max Kuhn ORCID iD [aut, cre], Posit Software, PBC ROR ID [cph, fnd]
Maintainer: Max Kuhn <max at posit.co>
BugReports: https://github.com/tidymodels/lorax/issues
License: MIT + file LICENSE
URL: https://github.com/tidymodels/lorax
NeedsCompilation: no
Language: en-US
Materials: README, NEWS
CRAN checks: lorax results

Documentation:

Reference manual: lorax.html , lorax.pdf

Downloads:

Package source: lorax_0.1.0.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): not available, r-oldrel (arm64): not available, r-release (x86_64): not available, r-oldrel (x86_64): not available

Linking:

Please use the canonical form https://CRAN.R-project.org/package=lorax to link to this page.