StanHeaders
C++ Header Files for Stan
Description
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.
Downloads
1.4M
Last 30 days
28th
2.7M
Last 90 days
7M
Last year
Trend: +89.8% (30d vs prior 30d)
1.7K
Last 30 days
4.8K
Last 90 days
14.4K
Last year
Trend: +5.8% (30d vs prior 30d)
29
Last 7 days
141
Last 30 days
8
All-time
⚠ Shared name: this package is also shipped elsewhere on openSUSE, so this count is not exclusive to autoCRAN (it is an upper bound).
3.2K
Last 30 days
9.7K
Last 90 days
39.4K
Last year
Trend: -5.7% (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 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 17.0Mb
sub-directories of 1Mb or more:
include 11.7Mb
lib 3.3Mb
installed package size
installed size is 17.4Mb
sub-directories of 1Mb or more:
include 11.7Mb
lib 3.7Mb
installed package size
installed size is 14.1Mb
sub-directories of 1Mb or more:
include 11.3Mb
ERROR 10 OK · 3 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 18, 2026
re-building of vignette outputs
Error(s) in re-building vignettes: --- re-building 'stanmath.Rmd' using rmarkdown Quitting from stanmath.Rmd:66-68 [unnamed-chunk-1] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <error/rlang_er ...[truncated]... ng vignette 'stanmath.Rmd' failed with diagnostics: Error 1 occurred building shared library. --- failed re-building 'stanmath.Rmd' SUMMARY: processing the following file failed: 'stanmath.Rmd' Error: Vignette re-building failed. Execution halted
installed package size
installed size is 17.0Mb
sub-directories of 1Mb or more:
include 11.7Mb
lib 3.3Mb
installed package size
installed size is 17.4Mb
sub-directories of 1Mb or more:
include 11.7Mb
lib 3.7Mb
installed package size
installed size is 14.1Mb
sub-directories of 1Mb or more:
include 11.3Mb
NOTE 11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
installed package size
installed size is 17.0Mb
sub-directories of 1Mb or more:
include 11.7Mb
lib 3.3Mb
installed package size
installed size is 17.4Mb
sub-directories of 1Mb or more:
include 11.7Mb
lib 3.7Mb
installed package size
installed size is 14.1Mb
sub-directories of 1Mb or more:
include 11.3Mb
Code
Structure
Lines of code
163,773
Files
2,356
Compiled share
99.5%
Has compiled src
Yes
Language breakdown
API
Exported functions
1
Internal functions
2
Recent export changes
Testing & CI
Has tests
Yes
Test-to-code ratio
0.04
testthat edition
–
CI present
No
CI type
[]
PR gated
No
Docs
Return-value doc rate
100%
\dontrun example ratio
0%
Roxygen coverage
100%
Has pkgdown
No
NEWS present
No
Health & Security signals
Informational signals; not verdicts.
on.exit coverage
33.3%
Unsafe pattern score
0
Dep constraint coverage
100%
Secret pattern count
0
Bundled 3rd-party code
2 items
Portability & License
Min R version
3.4.0
System requirements
2
C++ standard
C++17
License
BSD_3_clause + file LICENSE
License flags
SPDX valid, OSI approved
History
Versions
37
First release
2015-02-10
Latest release
2024-07-15
Avg cadence
65 days
Cold removal rate
100%
Dep drift
1
LOC over versions
Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.