instantiate: Pre-Compiled 'CmdStan' Models in R Packages

Similar to 'rstantools' for 'rstan', the 'instantiate' package builds pre-compiled 'CmdStan' models into CRAN-ready statistical modeling R packages. The models compile once during installation, the executables live inside the file systems of their respective packages, and users have the full power and convenience of 'cmdstanr' without any additional compilation. This approach saves time, allows R package developers to migrate from 'rstan' to the more modern 'cmdstanr', and fits well with centrally maintained R installations where users have trouble installing their own packages, diagnosing compilation errors, and setting environment variables. Packages 'rstantools', 'cmdstanr', 'stannis', and 'stanapi' are similar Stan clients with different objectives.

Version: 0.0.2
Depends: R (≥ 4.0.0)
Imports: fs, pkglite, rlang, utils
Suggests: cmdstanr, knitr (≥ 1.30), markdown (≥ 1.1), rmarkdown (≥ 2.4), testthat (≥ 3.0.0), withr
Published: 2023-08-11
Author: William Michael Landau ORCID iD [aut, cre], Eli Lilly and Company [cph, fnd]
Maintainer: William Michael Landau <will.landau at>
License: MIT + file LICENSE
NeedsCompilation: yes
SystemRequirements: CmdStan (
Language: en-US
Materials: NEWS
CRAN checks: instantiate results


Reference manual: instantiate.pdf


Package source: instantiate_0.0.2.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): instantiate_0.0.2.tgz, r-oldrel (arm64): instantiate_0.0.2.tgz, r-release (x86_64): instantiate_0.0.2.tgz, r-oldrel (x86_64): instantiate_0.0.2.tgz


Please use the canonical form to link to this page.