Package: flexstanr 0.2.0.9000

Carl Pearson

flexstanr: Portable Backend Layer for 'Stan' Models

Gives a 'Stan'-based R package one interface for fitting its models through either 'rstan' or 'cmdstanr', neither of which is required to install this package (install whichever you use). 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, reporting convergence and sampler diagnostics, 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.

Authors:Carl Pearson [aut, cre], Weston Voglesonger [aut]

flexstanr_0.2.0.9000.tar.gz
flexstanr_0.2.0.9000.zip(r-4.7-any)flexstanr_0.2.0.9000.zip(r-4.6-any)flexstanr_0.2.0.9000.zip(r-4.5-any)
flexstanr_0.2.0.9000.tgz(r-4.6-any)flexstanr_0.2.0.9000.tgz(r-4.5-any)
flexstanr_0.2.0.9000.tar.gz(r-4.7-any)flexstanr_0.2.0.9000.tar.gz(r-4.6-any)
flexstanr_0.2.0.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
flexstanr/json (API)

# Install 'flexstanr' in R:
install.packages('flexstanr', repos = c('https://accidda.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/accidda/flexstanr/issues

Pkgdown/docs site:https://accidda.github.io

On CRAN:

Conda:

5.32 score 1 stars 1 packages 3 scripts 348 downloads 9 exports 1 dependencies

Last updated from:5505d17dad. Checks:7 WARNING, 2 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develWARNING256
source / vignettesOK324
linux-releaseWARNING239
macos-releaseWARNING114
macos-oldrelWARNING125
windows-develWARNING129
windows-releaseWARNING121
windows-oldrelWARNING148
wasm-releaseOK228

Exports:backend_diagnosticsbackend_draws_arraybackend_extractbackend_generate_quantitiesbackend_has_drawsfit_modelstan_optionstest_threadeduse_flexstanr

Dependencies:parallelly

Getting started with flexstanr
Wiring it into your package | Building sampler options | Fitting a model | Reading a fit | Choosing cmdstanr

Last update: 2026-08-07
Started: 2026-07-08

Parallel and threaded fitting (including HPC)
What threading = TRUE does | Capping the cores | Model authors: warn when threads can't be used | How flexstanr decides how many cores to use | Compiling your model for threading | On a laptop or workstation | On an HPC cluster | The trap to avoid | Single node: let flexstanr split your allocation | Many chains across nodes: one chain per array task

Last update: 2026-07-27
Started: 2026-07-27