Package 'flexstanr'

Title: Portable Backend Layer for 'Stan' Models
Description: 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] (ORCID: <https://orcid.org/0000-0003-0701-7860>), Weston Voglesonger [aut]
Maintainer: Carl Pearson <[email protected]>
License: MIT + file LICENSE
Version: 0.2.0.9000
Built: 2026-10-13 12:19:55 UTC
Source: https://github.com/accidda/flexstanr

Help Index