This vignette provides many recommendations for developers interested in creating an R package that interface with Stan. Topics include development best practices, precompiling Stan programs, R code and documentation, and more.
This vignette walks through the steps required to set up a package with a precompiled Stan model, from creating the initial package structure to adding the precompiled Stan program and writing the R function that users will call to fit the model.