talira

rstantools

Tools for building R packages that use Stan models

open sourceGPL-3.0-or-laterfree

rstantools is the Stan team's R package for developers of R packages that use Stan. It sets up the package structure needed to ship pre-compiled Stan programs, gives S3 generics and default methods so Stan-based packages name their functions the same way, and comes with vignettes on recommended practice and a step-by-step guide to a package that depends on RStan.

Problems it solves

  • ship a pre-compiled Stan model inside my own R package
  • follow the Stan team's conventions for an R package built on RStan
  • set up the structure of an R package that uses Stan programs

Features

  • sets up the package structure for pre-compiled Stan programs
  • S3 generics and default methods shared across Stan-based packages
  • developer guidelines and a step-by-step package vignette

Alternatives

The same job

These do what rstantools does.

  1. usethis Automate R package and project setup
  2. lifecycle Tools and conventions for managing the life cycle of an R package's functions

Compare rstantools with the top 3