The rstantools package provides tools for developing R packages interfacing with Stan. The package vignettes provide guidelines and recommendations for developers as well as a demonstration of creating a working R package with a pre-compiled Stan program.
Guidelines for developers of R Packages interfacing with Stan
Step by step guide for creating a package that depends on RStan
install.packages("rstantools")
# install.packages("remotes")
remotes::install_github("stan-dev/rstantools")
This installation from GitHub will not build the vignettes, but we recommend viewing them online at mc-stan.org/rstantools/articles.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.