Stan Logo

rstantools

Tools for developers of R packages interfacing with Stan


The rstantools package provides various tools for developers of R packages interfacing with Stan, including functions to set up the required package structure, S3 generic methods to unify function naming across Stan-based R packages, and vignettes with guidelines for developers.

Getting Started

To get started building a package see the two rstantools vignettes for developers:

Installation

Install the latest release from CRAN

install.packages("rstantools")

Install latest development version from GitHub (requires remotes package):

if (!require("remotes")) {
  install.packages("remotes")
}
  
remotes::install_github("stan-dev/rstantools")

This installation from GitHub will not build the vignettes, but we recommend viewing the them online at mc-stan.org/rstantools/articles.