flexstanr: Portable Backend Layer for 'Stan' Models
Gives a 'Stan'-based R package one interface for fitting its
models through either 'rstan' or (optionally) 'cmdstanr'. Collects and
validates sampler options, guarding against mixing one backend's argument
vocabulary into the other, dispatches the fit to the chosen backend, and
exposes backend-agnostic accessors for reading posterior draws, extracting
parameters, and running generated quantities. The host package supplies its
own compiled models; flexstanr resolves them from the calling package at run
time, so the same code works whichever backend is installed.
| Version: |
0.1.0 |
| Depends: |
R (≥ 4.1.0) |
| Imports: |
methods, rstan (≥ 2.18.1), tools |
| Suggests: |
cmdstanr, desc, knitr, posterior, rmarkdown, spelling, testthat (≥ 3.0.0), withr |
| Published: |
2026-07-17 |
| DOI: |
10.32614/CRAN.package.flexstanr (may not be active yet) |
| Author: |
Carl Pearson
[aut, cre],
Weston Voglesonger [aut] |
| Maintainer: |
Carl Pearson <carl.ab.pearson at gmail.com> |
| BugReports: |
https://github.com/ACCIDDA/flexstanr/issues |
| License: |
MIT + file LICENSE |
| URL: |
https://accidda.github.io/flexstanr/,
https://github.com/ACCIDDA/flexstanr |
| NeedsCompilation: |
no |
| Additional_repositories: |
https://stan-dev.r-universe.dev |
| Language: |
en-US |
| Materials: |
README, NEWS |
| CRAN checks: |
flexstanr results |
Documentation:
Downloads:
Linking:
Please use the canonical form
https://CRAN.R-project.org/package=flexstanr
to link to this page.