rstan
2.32.7R Interface to Stan
Overview
User-facing R functions are provided to parse, compile, test, estimate, and analyze Stan models by accessing the header-only Stan library provided by the 'StanHeaders' package. The Stan project develops a probabilistic programming language that implements full Bayesian statistical inference via Markov Chain Monte Carlo, rough Bayesian inference via 'variational' approximation, and (optionally penalized) maximum likelihood estimation via optimization. In all three cases, automatic differentiation is used to quickly and accurately evaluate gradients without burdening the user with the need to derive the partial derivatives.
Install
Health
- NOTE r-devel-linux-x86_64-debian-clang
- NOTE r-devel-linux-x86_64-debian-gcc
- NOTE r-devel-linux-x86_64-fedora-gcc
- NOTE r-devel-windows-x86_64
- NOTE2026-07-1611 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- OK2026-06-0813 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- WARNING2026-06-0712 OK · 0 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE
- OK2026-04-2512 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- NOTE2026-04-2211 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Show 2 earlier snapshots
- ERROR2026-04-1810 OK · 3 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- NOTE2026-03-1011 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 51%
- Documented parameters
- 90%
- Return-value docs
- 86%
- References docs
- 41%
Downloads
Repository
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
Repository practices
7 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/stan-dev/rstan on 2026-07-19.
Show all practices
Dependencies
and 344 more packages.
Code & Tests
- Cyclomatic complexity
- 2.0 median / 89 max
- Test cases
- 58 / 0.41 per code line
- System requirements
- 2 external
Test coverage
Line coverage
15%
Expression
16.0%
Tests / Examples
15.3% / 17% ex
Functions
359 50 exported
Complexity
4.7 avg / 89 max
Call network
359 nodes / 365 edges
Call graph
Open call graph →Lowest coverage
359 functions| Function | Cyclo | Coverage |
|---|---|---|
| As.mcmc.list exp | 3 | 0% |
| Rhat exp | 1 | 0% |
| check_divergences exp | 2 | 0% |
| check_energy exp | 2 | 0% |
| check_hmc_diagnostics exp | 1 | 0% |
| check_treedepth exp | 2 | 0% |
People & History
32 releases. Pick two to compare their code metrics. R releases are shown for context.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 2.32.7Latest
- RR 4.4.0 released · 2024-04-24
- 2.32.62024-03-05 · diff ↗
- 2.32.52024-01-10 · diff ↗
- 2.32.32023-10-15 · diff ↗
- 2.26.232023-09-08 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 2.21.82023-01-17 · diff ↗
- 2.21.72022-09-08 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 2.21.52022-04-11 · diff ↗
- 2.21.32021-12-20 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 2.21.22020-07-27 · diff ↗
Show 28 earlier events
- 2.21.12020-07-08 · diff ↗
- RR 4.0.0 released · 2020-04-24
- 2.19.32020-02-11 · diff ↗
- 2.19.22019-07-09 · diff ↗
- RR 3.6.0 released · 2019-04-26
- 2.18.22018-11-07 · diff ↗
- 2.18.12018-10-16 · diff ↗
- 2.17.42018-10-01 · diff ↗
- RR 3.5.0 released · 2018-04-23
- 2.17.32018-01-20 · diff ↗
- 2.17.22017-12-21 · diff ↗
- 2.16.22017-07-03 · diff ↗
- RR 3.4.0 released · 2017-04-21
- 2.15.12017-04-19 · diff ↗
- 2.14.22017-03-19 · diff ↗
- 2.14.12016-12-28 · diff ↗
- 2.13.22016-12-18 · diff ↗
- 2.12.12016-09-12 · diff ↗
- 2.11.12016-07-29 · diff ↗
- 2.10.12016-06-24 · diff ↗
- RR 3.3.0 released · 2016-05-03
- 2.9.0-32016-02-12 · diff ↗
- 2.9.02016-01-05 · diff ↗
- 2.8.22015-11-27 · diff ↗
- 2.8.12015-11-19 · diff ↗
- 2.8.02015-09-19 · diff ↗
- 2.7.0-12015-07-18
- RR 3.2.0 released · 2015-04-16
Package metadata
- First published
- 2015-07-18
- Total releases
- 32 / 11 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 3.4.0
- Download size
- 1.5 MB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet