R Observatory
Search
install.packages("rstanarm")
CRAN 30-day downloads, method
32,162+1.1% up on the 30 days before, the better direction

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.

Maintainer
Ben Goodrich
Licence
GPL (>= 3)
Latest release
30 Sep 2025
First release
9 Jan 2016

Compare with another package

More details
Releases
23
Needs compilation
Yes
Needs R
>= 3.4.0
Date
2025-09-29
LazyData
true
RoxygenNote
7.3.3
SystemRequirements
GNU make, pandoc (>= 1.12.3), pandoc-citeproc
Task views (3)
Subjects (1) Method, Subjects
Cite

Package

Run in R for the authors' preferred citation:

citation("rstanarm")

The package provides a citation file that builds its entry when R runs it. Run citation() to see it.

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 rstanarm version 2.32.2 [Data set]. HJJB, LLC. Data release v2026-10-28. https://doi.org/10.5281/zenodo.21843040
About

From data release v2026-10-28, which the citation names so these numbers can be found later.

All 13 check platforms pass.

  • r-devel-linux-x86_64-debian-clang

    The unreleased R on Linux, x86_64, debian-clang

    OK

    Version checked
    2.32.2
    Time taken
    2,243 s
  • r-devel-linux-x86_64-debian-gcc

    The unreleased R on Linux, x86_64, debian-gcc

    OK

    Version checked
    2.32.2
    Time taken
    1,961 s
  • r-devel-linux-x86_64-fedora-clang

    The unreleased R on Linux, x86_64, fedora-clang

    OK

    Version checked
    2.32.2
    Time taken
    1,298 s
  • r-devel-linux-x86_64-fedora-gcc

    The unreleased R on Linux, x86_64, fedora-gcc

    OK

    Version checked
    2.32.2
    Time taken
    1,761 s
  • r-devel-windows-x86_64

    The unreleased R on Windows, x86_64

    OK

    Version checked
    2.32.2
    Options
    --no-examples --no-tests --no-vignettes
    Time taken
    2,158 s
  • r-oldrel-macos-arm64

    The previous release of R on macOS, arm64

    OK

    Version checked
    2.32.2
  • r-oldrel-macos-x86_64

    The previous release of R on macOS, x86_64

    OK

    Version checked
    2.32.2
    Time taken
    799 s
  • r-oldrel-windows-x86_64

    The previous release of R on Windows, x86_64

    OK

    Version checked
    2.32.2
    Options
    --no-examples --no-tests --no-vignettes
    Time taken
    2,366 s
  • r-patched-linux-x86_64

    The patched release of R on Linux, x86_64

    OK

    Version checked
    2.32.2
    Time taken
    2,629 s
  • r-release-linux-x86_64

    The current release of R on Linux, x86_64

    OK

    Version checked
    2.32.2
    Time taken
    2,610 s
  • r-release-macos-arm64

    The current release of R on macOS, arm64

    OK

    Version checked
    2.32.2
    Time taken
    213 s
  • r-release-macos-x86_64

    The current release of R on macOS, x86_64

    OK

    Version checked
    2.32.2
    Time taken
    1,425 s
  • r-release-windows-x86_64

    The current release of R on Windows, x86_64

    OK

    Version checked
    2.32.2
    Options
    --no-examples --no-tests --no-vignettes
    Time taken
    2,049 s
  • 13 OK

Over time

No change since 4 Aug 2026

As a list (12)
ChangedWorst statusOKNotesWarningsErrors
4 Aug 2026OK13000
1 Aug 2026Note12100
29 Jul 2026OK13000
27 Jul 2026Error12001
23 Jun 2026OK13000
20 Jun 2026Error12001
9 Jun 2026OK13000
7 Jun 2026Error12001
25 Apr 2026OK12000
22 Apr 2026Note11300
18 Apr 2026Error10301
10 Mar 2026Note11300

Since March 2026

Check results on CRAN

Total downloads in the last 30 days
34,107+4.8% up on the 30 days before, the better directionIt is the sum of 5 channels: CRAN, r2u, autoCRAN, conda-forge and c2d4u.

CRAN rank

612 of 26,530

CRAN

32,162 downloads in the last 30 days

Rank
612 of 26,530
Change
+1.1% up on the 30 days before, the better direction

It is in the total. Take it out

r2u

807 downloads in the last 30 days

Rank
912 of 30,526
Change
+58.6% up on the 30 days before, the better direction

It is in the total. Take it out

autoCRAN

5 downloads in the last 30 days

Rank
10,893 of 29,212
Change
−68.8% down on the 30 days before, the worse direction

It is in the total. Take it out

conda-forge

1,095 downloads in the last 30 days

Rank
959 of 3,828
Change
+630% up on the 30 days before, the better direction

It is in the total. Take it out

c2d4u, no longer updated

38 downloads in the last 30 days

Rank
561 of 7,575
Change
−24% down on the 30 days before, the worse direction

It is in the total. Take it out

Over time

Compare downloads

Needs
20
Dependent packages
11
Suggested by
46
Needs (20)
Installing it adds
111 packages, 114.0 MB of source
Of those, need compilation
56
Optional extras (16)
Dependent packages (11)
PackageTitleDownloads in 30 days
bayesrulesDatasets and Supplemental Functions from Bayes Rules! Book1,100
tidyposteriorBayesian Analysis to Compare Models using Resampling Statistics527
BayesERtoolsBayesian Exposure-Response Analysis Tools485
SIMPLE.REGRESSIONOLS, Moderated, Logistic, and Count Regressions Made Simple413
AuxSurveySurvey Analysis with Auxiliary Discretized Variables361
fbstThe Full Bayesian Evidence Test, Full Bayesian Significance Test and the e-Value351
IRexamplesCollection of Practical Institutional Research Examples and Tutorials314
JMbdirectJoint Model for Longitudinal and Multiple Time to Events Data271
webSDMIncluding Known Interactions in Species Distribution Models259
jmBIGJoint Longitudinal and Survival Model for Big Data246
outstandRModel-Based Standardisation for Indirect Treatment Comparison with Limited Subject-Level Data225
Functions
551
Public exports
90
Lines of R code
23,563
Median complexity
3
Functions (551)
Size and composition

Lines by kind (107,421)

KindLinesShare
R code23,56322%
Tests5,7135%
Documentation8,5988%
Guides7,4157%
Compiled code62,13258%

Lines by language

LanguageLinesShare
C61,83758%
R29,27627%
Rd8,5988%
Vignettes7,2527%
C++2950.3%
Other1630.2%

Languages are counted from file extensions.

Files
355
R functions
516
Compiled functions
37
Object systems
S3: 98 methods
Deprecated functions
1
Complexity
Median
3
Mean
5.77
Highest
154
Median lines per function
10
About complexity

Cyclomatic complexity counts the independent paths through a function: 1 is a straight line, higher is harder to test. R functions only.

Call graph figures
R functions
516
Calls
1,103
Unconnected
63
Groups
7
Growth (23 releases)
Total lines by release
24,876 on 9 Jan 2016107,421 on 30 Sep 2025
Release changes

The run took too long and was stopped.

Test cases
342
Lines of tests
5,713
Exports named in tests
73.3%
Test suite
Has tests
Yes
Test frameworks
testthat, tinytest
Test cases
342
Test lines per line of code
0.24
DatasetSizeColumns
bball1970Datasets for rstanarm examples18 × 5Player, AB, Hits, RemainingAB, RemainingHits
bball2006Datasets for rstanarm examples308 × 2y, K
kidiqDatasets for rstanarm examples434 × 4kid_score, mom_hs, mom_iq, mom_age
mortalityDatasets for rstanarm examples12 × 2y, K
pbcLongDatasets for rstanarm examples304 × 8id, age, sex, trt, year, logBili and 2 more
pbcSurvDatasets for rstanarm examples40 × 7id, age, sex, trt, futimeYears, status and 1 more
radonDatasets for rstanarm examples919 × 4floor, county, log_radon, log_uranium
roachesDatasets for rstanarm examplesalso in 1 other package262 × 5y, roach1, treatment, senior, exposure2
tumorsDatasets for rstanarm examples71 × 2y, K
wellsDatasets for rstanarm examples3,020 × 5switch, arsenic, dist, assoc, educ

stan-dev / rstanarm on github.com

Stars
402+0.25% up on 30 days ago, the better direction
Forks
136
Open issues
165
Last commit
13 Oct 2026
Activity
Commits
3,394
Open pull requests
9
Tagged releases
8
Latest tagged release
v2.32.2, 6 Oct 2025
Issues closed in
100 days (median)
Pull requests closed in
5 days (median)
Pull requests merged
86%
Created
16 Jul 2013
Licence file reads as
GPL-3.0
Development practices (10)
KindFound
Continuous integrationGitHub Actions, R CMD check workflow
The R CMD check workflow runs on Linux, macOS and Windows
Governance and communityIssue templates, Funding
Funding links: GitHub Sponsors, mc-stan.org
The repository owner accepts GitHub Sponsors
Docs sourcepkgdown
GitHub Pages site last deployed 2026-10-14
The repository has a site deploy workflow
pkgdown site last built 2026-10-14
Automation and maintenanceDependabot
Lint, format, editorRStudio project

Method, repository practices

Across stan-dev

R releases
  • On CRAN
  • Release
VersionReleasedR
2.32.2 current30 Sep 20254.5.1
2.32.119 Jan 20244.3.2
2.26.114 Sep 20234.3.1
2.21.48 Apr 20234.2.3
2.21.39 Apr 20224.1.3
2.21.120 Jul 20204.0.2
2.19.311 Feb 20203.6.2
2.19.23 Oct 20193.6.1
Earlier versions (15)
VersionReleasedR
2.18.210 Nov 20183.5.0
2.18.121 Oct 20183.5.0
2.17.413 Apr 20183.4.4
2.17.318 Feb 20183.4.3
2.17.221 Dec 20173.4.3
2.15.329 Apr 20173.4.0
2.15.219 Apr 20173.3.3
2.14.117 Jan 20173.3.2
2.13.120 Nov 20163.3.2
2.12.113 Sep 20163.3.1
2.11.129 Jul 20163.3.1
2.10.125 Jun 20163.3.1
2.9.0-424 May 20163.3.0
2.9.0-313 Feb 20163.2.3
2.9.0-19 Jan 20163.2.3