# CmdStanR

> Lightweight R interface to CmdStan

Source: https://talira.ai/catalog/cmdstanr-bj41ndy7
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / math / statistics](https://talira.ai/categories/libraries/math/statistics), [languages / r](https://talira.ai/categories/languages/r)
- Licence: BSD-3-Clause[^1][^2][^3]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Stan Development Team](https://talira.ai/orgs/stan-dev.md)

CmdStanR is a lightweight [R](https://talira.ai/catalog/r-jj1se4aq.md) interface to [Stan](https://talira.ai/catalog/stan-rerqryze.md), an alternative to [RStan](https://talira.ai/catalog/rstan-0xp4m55p.md) that calls CmdStan's command-line programs to compile models and run algorithms instead of linking Stan's C++ into R, so it keeps up with Stan releases. It runs Stan's algorithms and leaves analysis to other packages. It installs from the Stan r-universe repository or conda-forge, not CRAN.

## Links

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

## Problems it solves

- fit a Stan model from R
- use the latest Stan release from R
- an alternative to RStan that avoids compiling C++ inside R

## Features

- compile and run Stan models from R through CmdStan
- no C++ linked into R
- keeps up with Stan releases
- installs CmdStan with install_cmdstan()

## Trust

Overall: 0.50 out of 1.
Signals: maintenance 0.82, adoption 0.44, momentum 0.14, community 0.65, backing 0.30, extensibility 0.00.

- last commit 19 days ago
- 33 commits in the last 90 days
- latest release v0.9.0 20 months ago
- 166 GitHub stars
- 41 contributors
- accepts sponsorship (Github, Custom)
- backed by Stan Development Team

## Related

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

## Alternatives

- [RStan](https://talira.ai/catalog/rstan-0xp4m55p.md): R interface to Stan, for Bayesian inference
- [CmdStan](https://talira.ai/catalog/cmdstan-0kddshy5.md): Command-line interface to Stan for compiling and running Bayesian models
- [Stan](https://talira.ai/catalog/stan-rerqryze.md): Probabilistic programming language for Bayesian statistical modelling

## Sources

[^1]: https://github.com/stan-dev/cmdstanr/blob/master/DESCRIPTION (checked 29 Nov 2026)
[^2]: https://github.com/stan-dev/cmdstanr/blob/master/LICENSE.md (checked 29 Nov 2026)
[^3]: https://github.com/stan-dev/cmdstanr/blob/master/README.md (checked 29 Nov 2026)
