rstan_package_skeleton function helps get you started developing
R packages that interface with Stan via the rstan package. As of
usethis::create_package (instead of
and then makes necessary adjustments so that the package can include Stan
Programs that can be built into binary versions (i.e., pre-compiled like
See the See Also section below for links to recommendations for
developers and a step by step walk-through of what to do after running
A relative or absolute path to the new package to be created (terminating in the package name).
A character vector with paths to
This function downloads several files from rstanarm package's
GitHub repository to facilitate
building the resulting package. Note that rstanarm
is licensed under the GPL >= 3, so package builders who do not want to be
governed by that license should not use the downloaded files that contain
R code (that said, Rcpp is GPL, so not using the rstanarm
files is not the only thing impeding use of other licenses). Otherwise, it
may be worth considering whether it would be easier to include your
.stan programs and supporting R code in the rstanarm package.
Guidelines and recommendations for developers of R packages interfacing with Stan and a demonstration getting a simple package working can be found in the vignettes included with rstantools and at http://mc-stan.org/rstantools/articles/.
The useR2016 presentation How to Use (R)Stan to Estimate Models in External R Packages.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.