Skip to content

dbarts

Discrete Bayesian Additive Regression Trees Sampler

v0.9-33 · Mar 19, 2026 · GPL (>= 2)

Description

Fits Bayesian additive regression trees (BART; Chipman, George, and McCulloch (2010) <doi:10.1214/09-AOAS285>) while allowing the updating of predictors or response so that BART can be incorporated as a conditional model in a Gibbs/Metropolis-Hastings sampler. Also serves as a drop-in replacement for package 'BayesTree'.

Downloads

CRAN

6.2K

Last 30 days

1470th

22.6K

Last 90 days

97.2K

Last year

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

r2u CRAN

67

Last 30 days

338

Last 90 days

4.3K

Last year

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

autoCRAN

8

Last 7 days

20

Last 30 days

6

All-time

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

conda-forge CRAN

249

Last 30 days

1K

Last 90 days

6.3K

Last year

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

CRAN Check Status

1 ERROR
12 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 ERROR
r-release-windows-x86_64 OK
Check details (1 non-OK)
ERROR r-release-macos-x86_64

whether package can be installed

Installation failed.
See ‘/Volumes/Builds/packages/big-sur-x86_64/results/4.6/dbarts.Rcheck/00install.out’ for details.

Additional Issues

Check History

ERROR 11 OK · 2 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 30, 2026
NOTE r-devel-linux-x86_64-debian-gcc

compiled code

File ‘dbarts/libs/dbarts.so’:
  Found non-API calls to R: ‘R_MissingArg’, ‘R_UnboundValue’

Compiled code should not call non-API entry points in R.

See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual,
and section ‘Moving into C API compliance’ for issues with the use of
non-API entry points.
NOTE r-devel-linux-x86_64-fedora-clang

compiled code

File ‘dbarts/libs/dbarts.so’:
  Found non-API calls to R: ‘R_MissingArg’, ‘R_UnboundValue’

Compiled code should not call non-API entry points in R.

See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual,
and section ‘Moving into C API compliance’ for issues with the use of
non-API entry points.
ERROR r-oldrel-windows-x86_64

re-building of vignette outputs

Error(s) in re-building vignettes:
--- re-building 'gibbs_sampler_mixture_model.Rmd' using rmarkdown
! Package pdftex.def Error: File `88e1f381b69f8b96e16b4c95c0dfc99cd2507662.pdf'
 not found: using draft setting.

Error: processing vignette 'gibbs_s
...[truncated]...
d_trees.log for more info.
--- failed re-building 'working_with_saved_trees.Rmd'

SUMMARY: processing the following files failed:
  'gibbs_sampler_mixture_model.Rmd' 'working_with_saved_trees.Rmd'

Error: Vignette re-building failed.
Execution halted
NOTE 13 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 27, 2026
NOTE r-devel-linux-x86_64-debian-gcc

compiled code

File ‘dbarts/libs/dbarts.so’:
  Found non-API calls to R: ‘R_MissingArg’, ‘R_UnboundValue’

Compiled code should not call non-API entry points in R.

See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual,
and section ‘Moving into C API compliance’ for issues with the use of
non-API entry points.
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 24, 2026
NOTE 13 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-oldrel-macos-arm64

package vignettes

Package has ‘vignettes’ subdirectory but apparently no vignettes.
Perhaps the ‘VignetteBuilder’ information is missing from the
DESCRIPTION file?

Code

Structure

Lines of code

34,749

Files

229

Compiled share

82%

Has compiled src

Yes

Language breakdown

R 4,501 (13%)C/C++/src 28,497 (82%)Tests 5 (0%)Docs 1,236 (3.6%)Vignettes 510 (1.5%)

API

Exported functions

14

Internal functions

50

Testing & CI

Has tests

Yes

Test-to-code ratio

0.00

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

20%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

No

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

0%

Unsafe pattern score

6

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

System requirements

C++ standard

License

GPL (>= 2)

License flags

SPDX valid, OSI approved

History

Versions

29

First release

2014-07-12

Latest release

2026-03-20

Avg cadence

120 days

Cold removal rate

100%

Dep drift

2

LOC over versions

v0.8-2: 10,835 LOCv0.8-3: 10,860 LOCv0.8-4: 13,766 LOCv0.8-5: 13,796 LOCv0.8-6: 21,728 LOCv0.8-7: 21,743 LOCv0.9-0: 25,218 LOCv0.9-1: 25,270 LOCv0.9-3: 26,454 LOCv0.9-4: 27,244 LOCv0.9-5: 27,244 LOCv0.9-7: 27,390 LOCv0.9-8: 27,400 LOCv0.9-11: 30,585 LOCv0.9-12: 30,672 LOCv0.9-13: 30,974 LOCv0.9-16: 31,831 LOCv0.9-17: 31,840 LOCv0.9-18: 32,251 LOCv0.9-19: 32,830 LOCv0.9-20: 33,265 LOCv0.9-22: 34,297 LOCv0.9-23: 36,739 LOCv0.9-25: 36,798 LOCv0.9-26: 36,798 LOCv0.9-28: 36,808 LOCv0.9-30: 36,835 LOCv0.9-32: 34,679 LOCv0.9-33: 34,749 LOC

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

Reverse Dependencies (23)

depends

linking_to

Dependency Network

Dependencies Reverse dependencies stan4bart EBcoBART bartCause bartMan bartXViz funcml glossa nlfh riAFTBART tidytreatment voi MatchIt WeightIt adrftools bundle +8 more reverse deps dbarts

Version History

30 tracked
updated 0.9-33 ← 0.9-32 diff Mar 20, 2026
new 0.9-32 Mar 10, 2026
updated 0.9-32 ← 0.9-30 diff Apr 1, 2025
updated 0.9-30 ← 0.9-28 diff Dec 2, 2024
updated 0.9-28 ← 0.9-26 diff May 1, 2024
updated 0.9-26 ← 0.9-25 diff Feb 3, 2024
updated 0.9-25 ← 0.9-23 diff Dec 6, 2023
updated 0.9-23 ← 0.9-22 diff Jan 22, 2023
updated 0.9-22 ← 0.9-20 diff Mar 28, 2022
updated 0.9-20 ← 0.9-19 diff Oct 7, 2021
updated 0.9-19 ← 0.9-18 diff Jan 4, 2021
updated 0.9-18 ← 0.9-17 diff Jun 11, 2020
updated 0.9-17 ← 0.9-16 diff Mar 19, 2020
updated 0.9-16 ← 0.9-13 diff Feb 18, 2020
updated 0.9-13 ← 0.9-12 diff Sep 23, 2019