rstanarm
Bayesian Applied Regression Modeling via Stan
Description
Estimates previously compiled regression models using the 'rstan' package, which provides the R interface to the Stan C++ library for Bayesian estimation. Users specify models via the customary R syntax with a formula and data.frame plus some additional arguments for priors.
Downloads
57.9K
Last 30 days
465th
123.4K
Last 90 days
358.4K
Last year
Trend: +47.5% (30d vs prior 30d)
393
Last 30 days
1.6K
Last 90 days
8.2K
Last year
Trend: -25% (30d vs prior 30d)
0
Last 7 days
19
Last 30 days
0
All-time
autoCRAN-only: this name is served only by autoCRAN, so the count is exact.
226
Last 30 days
719
Last 90 days
5.4K
Last year
Trend: -38.9% (30d vs prior 30d)
CRAN Check Status
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 | OK |
| r-release-windows-x86_64 | OK |
Check History
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 23, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 20, 2026
examples
Running examples in ‘rstanarm-Ex.R’ failed The error most likely occurred in: > ### Name: stan_betareg > ### Title: Bayesian beta regression models via Stan > ### Aliases: stan_betareg stan_betareg.fit > > ### ** Examples > > if (.Platform$OS.type ...[truncated]... m = "optimizing" # just for speed of example + ) + print(fit, digits = 2) + } Error in stan_betareg(y ~ x | z, data = fake_dat, link = "logit", link.phi = "log", : Please install the betareg package before using 'stan_betareg'. Execution halted
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 7, 2026
for unstated dependencies in examples
Warning in file(out, "wt") : cannot open file '/tmp/Rtmp9FDzbr/fileca42e572e9db3/pp_validate.R': No space left on device Error in file(out, "wt") : cannot open the connection Execution halted
OK 12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 25, 2026
NOTE 11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 22, 2026
installed package size
installed size is 312.4Mb
sub-directories of 1Mb or more:
R 2.1Mb
doc 4.8Mb
libs 304.5Mb
installed package size
installed size is 314.8Mb
sub-directories of 1Mb or more:
R 2.0Mb
doc 4.8Mb
libs 307.0Mb
installed package size
installed size is 20.6Mb
sub-directories of 1Mb or more:
R 1.8Mb
doc 4.8Mb
libs 13.0Mb
ERROR 10 OK · 3 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 18, 2026
whether package can be installed
Installation failed. See 'd:/Rcompile/CRANpkg/local/4.6/rstanarm.Rcheck/00install.out' for details.
installed package size
installed size is 312.4Mb
sub-directories of 1Mb or more:
R 2.1Mb
doc 4.8Mb
libs 304.5Mb
installed package size
installed size is 314.8Mb
sub-directories of 1Mb or more:
R 2.0Mb
doc 4.8Mb
libs 307.0Mb
installed package size
installed size is 20.6Mb
sub-directories of 1Mb or more:
R 1.8Mb
doc 4.8Mb
libs 13.0Mb
NOTE 11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
installed package size
installed size is 312.4Mb
sub-directories of 1Mb or more:
R 2.1Mb
doc 4.8Mb
libs 304.5Mb
installed package size
installed size is 314.8Mb
sub-directories of 1Mb or more:
R 2.0Mb
doc 4.8Mb
libs 307.0Mb
installed package size
installed size is 20.6Mb
sub-directories of 1Mb or more:
R 1.8Mb
doc 4.8Mb
libs 13.0Mb
Code
Structure
Lines of code
107,421
Files
355
Compiled share
57.8%
Has compiled src
Yes
Language breakdown
API
Exported functions
90
Internal functions
431
Recent export changes
Testing & CI
Has tests
Yes
Test-to-code ratio
0.24
testthat edition
–
CI present
No
CI type
[]
PR gated
No
Docs
Return-value doc rate
87.8%
\dontrun example ratio
0%
Roxygen coverage
100%
Has pkgdown
No
NEWS present
Yes
Health & Security signals
Informational signals; not verdicts.
on.exit coverage
50%
Unsafe pattern score
12
Dep constraint coverage
70.6%
Secret pattern count
0
Bundled 3rd-party code
2 items
Portability & License
Min R version
3.4.0
System requirements
3
C++ standard
C++17
License
GPL (>= 3)
License flags
SPDX valid, OSI approved
History
Versions
23
First release
2016-01-09
Latest release
2025-09-30
Avg cadence
97 days
Cold removal rate
100%
Dep drift
20
LOC over versions
Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.