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 (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.
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.1.0
Built: 2026-07-20 19:24:18 UTC
Source: https://github.com/accidda/flexstanr

Help Index