C++ Header Files for Stan
Overview
The C++ header files of the Stan project are provided by this package, but it contains little R code or documentation. The main reference is the vignette. There is a shared object containing part of the 'CVODES' library, but its functionality is not accessible from R. 'StanHeaders' is primarily useful for developers who want to utilize the 'LinkingTo' directive of their package's DESCRIPTION file to build on the Stan library without incurring unnecessary dependencies. The Stan project develops a probabilistic programming language that implements full or approximate Bayesian statistical inference via Markov Chain Monte Carlo or 'variational' methods and implements (optionally penalized) maximum likelihood estimation via optimization. The Stan library includes an advanced automatic differentiation scheme, 'templated' statistical and linear algebra functions that can handle the automatically 'differentiable' scalar types (and doubles, 'ints', etc.), and a parser for the Stan language. The 'rstan' package provides user-facing R functions to parse, compile, test, estimate, and analyze Stan models.
Install
Health
- OK13 OK2026-09-08
- ERROR12 OK, 1 ERROR2026-09-07
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-07-29
Show 5 earlier changesHide 5 earlier changes
- ERROR12 OK, 1 ERROR2026-07-27
- OK12 OK2026-04-25
- NOTE11 OK, 3 NOTE2026-04-22
- ERROR10 OK, 3 NOTE, 1 ERROR2026-04-18
- NOTE11 OK, 3 NOTE2026-03-10
Documentation
- Help pages
- 2
- Examples that run
- 100%1 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 14%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 84%
- Median days to close, 50 most recently updated closed issues
- 4
- Median days to close, 50 most recently updated closed PRs
- 1
Stars over time
Forks over time
Issues over time
PRs over time
Commits over time
11 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/stan-dev/rstan on 2026-10-21.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Funding links: GitHub Sponsors, mc-stan.org
The repository owner accepts GitHub Sponsors
GitHub Pages site last deployed 2026-10-19 · The repository has a site deploy workflow
pkgdown site last built 2025-12-10, before release 2.39.1 (2026-09-02)
Show all practicesHide 2 practices
Dependencies
Installing StanHeaders adds 3 packages (3 with compiled code, 4.2 MB of source tarballs). Heaviest: Rcpp 1.8 MB, RcppEigen 1.7 MB, RcppParallel 744 KB.
Show the 48 most downloaded dependentsHide the 48 most downloaded dependents
and 108 more dependents and 1 package that suggests it on CRAN ↗
Code & Tests
People & History
Previously maintained by Joshua N. Pritikin (2.6.0-10).
Pick two releases to compare their code metrics.
- 2.39.1Latest
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 2.32.102024-07-15 · diff ↗
- 2.32.92024-05-29 · diff ↗
- 2.32.82024-05-21 · diff ↗
- 2.32.72024-04-25 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 2.32.62024-03-01 · diff ↗
- 2.32.52024-01-10 · diff ↗
- 2.26.282023-09-07 · diff ↗
- 2.26.272023-06-15 · diff ↗
- 2.26.262023-05-31 · diff ↗
- 2.26.252023-05-17 · diff ↗
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
Show 35 earlier eventsHide 35 earlier events
- RR 4.1.0 released · 2021-05-18
- 2.21.0-72020-12-17 · diff ↗
- 2.21.0-6
- 2.21.0-52020-06-09 · diff ↗
- 2.21.0-32020-05-28 · diff ↗
- RR 4.0.0 released · 2020-04-24
- 2.21.0-12020-01-19 · diff ↗
- 2.19.22020-02-11 · diff ↗
- 2.19.02020-01-29 · diff ↗
- 2.18.1-102019-06-14 · diff ↗
- RR 3.6.0 released · 2019-04-26
- 2.18.12019-01-29 · diff ↗
- 2.18.0-12018-12-13 · diff ↗
- 2.18.02018-10-07 · diff ↗
- RR 3.5.0 released · 2018-04-23
- 2.17.22018-01-20 · diff ↗
- 2.17.12017-12-20 · diff ↗
- 2.16.0-12017-07-03 · diff ↗
- RR 3.4.0 released · 2017-04-21
- 2.15.0-12017-04-19 · diff ↗
- 2.14.0-12017-01-09 · diff ↗
- 2.14.02016-12-28 · diff ↗
- 2.13.12016-12-18 · diff ↗
- 2.12.0-12016-11-20 · diff ↗
- 2.12.02016-09-12 · diff ↗
- 2.11.02016-07-28 · diff ↗
- 2.10.0-22016-06-24 · diff ↗
- 2.10.0
- RR 3.3.0 released · 2016-05-03
- 2.9.02016-01-03 · diff ↗
- 2.8.02015-09-16 · diff ↗
- 2.7.0
- RR 3.2.0 released · 2015-04-16
- 2.6.0-102015-02-10
- RR 3.1.0 released · 2014-04-10
Package metadata
- First published
- 2015-02-10
- Total releases
- 38 / 11 yrs
- License
- BSD_3_clause + file LICENSE OSI
- Minimum R
- ≥ 3.4.0
- Download size
- 2.5 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("StanHeaders")The package provides a citation file, so citation() returns the authors' own entry.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.