# rstantools

> Tools for building R packages that use Stan models

Source: https://talira.ai/catalog/rstantools-87k921f5
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [developer tools / package authoring](https://talira.ai/categories/developer-tools/package-authoring), [languages / r](https://talira.ai/categories/languages/r)
- Licence: GPL-3.0-or-later[^1]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source (GPL-3.0 or later).
- Free tier: yes[^1]
- Backed by: [Stan Development Team](https://talira.ai/orgs/stan-dev.md)

rstantools is the Stan team's R package for developers of R packages that use [Stan](https://talira.ai/catalog/stan-rerqryze.md). 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](https://talira.ai/catalog/rstan-0xp4m55p.md).

## Links

- GitHub: https://github.com/stan-dev/rstantools
- Docs: https://mc-stan.org/rstantools

## 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

## Trust

Overall: 0.33 out of 1.
Signals: maintenance 0.46, adoption 0.34, momentum 0.04, community 0.55, backing 0.30, extensibility 0.00.

- last commit 2 months ago
- 2 commits in the last 90 days
- latest release v2.7.0 4 months ago
- 49 GitHub stars
- 23 contributors
- accepts sponsorship (Github, Custom)
- backed by Stan Development Team

## Related

- Works with [RStan](https://talira.ai/catalog/rstan-0xp4m55p.md)
- Works with [Stan](https://talira.ai/catalog/stan-rerqryze.md)

## Alternatives

- [usethis](https://talira.ai/catalog/usethis-ckbjm7g4.md): Automate R package and project setup
- [lifecycle](https://talira.ai/catalog/lifecycle-dcqgbcvk.md): Tools and conventions for managing the life cycle of an R package's functions

## Sources

[^1]: https://github.com/stan-dev/rstantools/blob/master/DESCRIPTION (checked 29 Nov 2026)
