Skip to content

bonsai

0.4.1

Model Wrappers for Tree-Based Models

1packages dependsuggested by 5
18.3Kdownloads / year
60.3%test coverage
13/13flavors OK

Overview

About

Bindings for additional tree-based model engines for use with the 'parsnip' package. Models include gradient boosted decision trees with 'LightGBM' (Ke et al, 2017.), conditional inference trees and conditional random forests with 'partykit' (Hothorn and Zeileis, 2015. and Hothorn et al, 2006. doi:10.1198/106186006X133933), and accelerated oblique random forests with 'aorsf' (Jaeger et al, 2022 doi:10.5281/zenodo.7116854).

Changes in 0.4.1

Bug Fixes

  • Added multi_predict() method for catboost engine, enabling efficient tuning of the trees parameter (#115).
  • catboost tuning parameters were updates: (#119)
  • Fixed a bug in mtry; it used the parsnip name mtry_prop.
  • Enabled model arguments for min_n, sample_size, and stop_iter. min_n is only enabled for GPU computations.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 3.8 min · r-oldrel-macos-x86_64
Status changes
  • OK13 OK2026-10-17
  • WARNING12 OK, 1 WARNING2026-10-01
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-07-04
Show 4 earlier changesHide 4 earlier changes
  • WARNING12 OK, 1 WARNING2026-07-03
  • OK13 OK2026-06-09
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.4.1
READMEYes · 248 wordsVignettesYes · 1 · dynamicNEWSYes · 100% structured · mentions 0.4.1Citation fileNoWebsiteYes · pkgdown
Help pages
6 (5 internal)includes a package overview page
Examples that run
no examples
Exported functions with examples
0%
Documented parameters
50%
Return-value docs
50%
Help pages citing references
0%

Downloads

18.3K
CRAN downloads in the past year
Rank #3,186 · ~50/day · ~1.5K/mo
Daily download trend is not available in this view yet.
1.1K30 days
3.7K90 days
18.3K1 year
Compare downloads with other packages →
Also on166 r2u26 autocran1.4K conda_forge

Repository

57Stars
10Forks
11Open issues
2Open PRs
8Releases
217Commits
8Commit identities
217 commits · Last activity 2026-05-21 · 0% stars, 30d · Default branch at 0.4.1.9000, ahead of CRAN 0.4.1 (checked 2026-10-11)
Responsiveness
How these are sampled
PRs merged (all time)
95%
Median days to close, 50 most recently updated closed issues
7
Median days to close, 50 most recently updated closed PRs
1

Stars over time

2025-05-13 · 522026-09-10 · 57
PracticesBeta

16 development-tooling and community-health practices detected across 6 families in the upstream repository

Checks run against github.com/tidymodels/bonsai on 2026-10-11.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Governance and community (4)
Code of conductContributing guideIssue templatesSupport guide
Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-05-21 · The repository has a site deploy workflow

pkgdown site last built 2026-05-21

Coverage (1)
Coverage reporting (Codecov)
Show all practicesHide 2 practices
CRAN release process (2)
cran-comments.mdrevdep/
Lint, format, editor (3)
AirVS CodeRStudio project
How this is detected·Detection ruleset v3 (2026-09-26)
AI coding toolsBeta

An outside contributor's pull request to this repository was written with an AI coding tool.

From outside contributors
  • Claude Code
    Pull requests: 1 from outside contributors, first on 2026-04-18, 1 from forks
How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
18 external dependencies (excludes base and recommended)

Installing bonsai adds 37 packages (17 with compiled code, 32 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, isoband 1.5 MB.

Depends (2)
R >= 4.1parsnip
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
1direct
0indirect
Imports 1
Suggested by 5
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

People & History

People (7)
Author, Maintainer since 0.4.0 (2025) · added in 0.4.0
Author
Copyright holder, Funder · added in 0.3.0

Previously maintained by Simon Couch (0.1.0 to 0.3.2).

Listed in earlier versions (1)
RStudio
no longer listed · 0.1.0 to 0.2.1
Releases (8)

Pick two releases to compare their code metrics.

  • 0.4.1Latest
    record
    2026-05-21 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 0.4.0
    record
    2025-06-25 · diff ↗ ·
    added 5 exports
    predict_catboost_classification_class, predict_catboost_classification_prob, predict_catboost_classification_raw, predict_catboost_regression_numeric, train_catboost
  • R
    R 4.5.0 released · 2025-04-11
  • 0.3.2
    record
    2025-02-12 · diff ↗
  • 0.3.1
    record
    2024-07-23 · diff ↗
  • 0.3.0
    record
    2024-06-24 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • 0.2.1
    record
    2022-11-29 · diff ↗
  • 0.2.0
    record
    2022-08-31 · diff ↗
  • 0.1.0
    record
    2022-06-23
  • R
    R 4.2.0 released · 2022-04-22

Package metadata

First published
2022-06-23
Total releases
8 / 4 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 4.1
Download size
65 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("bonsai")
Hvitfeldt, E., Posit Software, PBC, Couch, S., Damiani, A., Falbel, D., Hogervorst, R. M., & Kuhn, M. (2026). bonsai: Model Wrappers for Tree-Based Models (Version 0.4.1) [Computer software]. https://doi.org/10.32614/CRAN.package.bonsai

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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for bonsai version 0.4.1 [Data set]. HJJB, LLC. Data release v2026-10-17. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy