Pre-Compiled 'CmdStan' Models in R Packages
instantiate: pre-compiled CmdStan models in R packages
Check if instantiate can find CmdStanR and CmdStan.
Path to CmdStan for instantiate
Version of CmdStan that instantiate uses.
Remove one or more compiled Stan models in an R package.
Compile the Stan models in an R package.
Configure an R package with built-in Stan models.
Create example package with a built-in Stan model.
List Stan model file paths.
Get a pre-compiled Stan model built into an R package.
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 after package installation. This approach saves time and helps R package developers migrate from 'rstan' to the more modern 'cmdstanr'. Packages 'rstantools', 'cmdstanr', 'stannis', and 'stanapi' are similar Stan clients with different objectives.
Useful links