The Stan development team released a CmdStanR 1.0 release candidate (displayed version 0.99.0) for the R interface to Bayesian inference with Stan on 15 October 2026. The update rebuilds model-compilation tracking so that sidecar metadata detects stale binaries and blocks silent misuse, and it removes lazy-compile APIs so that model objects are ready to use as soon as they are created.

CmdStanR 1.0 schematic of build-metadata tracking and executable verification (AI-generated illustration)
Compilation metadata tracking: blocking silent runs of stale binaries
CmdStanR is the main R interface for calling CmdStan (Stan's command-line backend) for Bayesian MCMC, variational inference, and optimization. It evolves alongside rstan and underpins packages such as brms, rethinking, and instantiate. In earlier versions, if a researcher changed included files, custom C++ headers, or compiler options without a noticeable change to the main Stan file's timestamp, a workflow could keep calling an old executable with no warning. In the 1.0 release candidate announced by developer Jonah on the Stan Forums on 15 October 2026 (and relayed on Andrew Gelman's blog on 20 October), cmdstan_model() rebuilds compilation-state tracking to record fully which inputs produced the executable—Stan sources and include files, user_header, cpp_options, stanc_options, make/local settings, and the matching CmdStan version.
That build metadata is stored in a hidden sidecar JSON next to the executable; users can inspect it with the model method mod$build_info() or the standalone stan_build_info(). If any tracked dependency or compile option changes, CmdStanR marks the model for recompilation; forcing a stale executable raises a clear error instead of quietly running the old binary. The mechanism targets the iterative-modeling hazard of "code changed, binary did not," reducing the risk that posterior draws no longer match the current model specification.

Call-path comparison before and after CmdStanR 1.0 removed lazy-compile APIs (AI-generated schematic)
Removing lazy compile: ready-on-create model objects and file-level helpers
Besides tracking, CmdStanR 1.0's core breaking change is the complete removal of a separate $compile() method and of compile = FALSE on cmdstan_model(). The old API allowed cmdstan_model(stan_file, compile = FALSE) to create an uncompiled CmdStanModel shell, with an explicit $compile() later. That two-stage design left objects in an "instantiated but not sampleable" middle state and forced wrapping packages to check for empty state. After removing lazy compile, every successfully created CmdStanModel is guaranteed compiled and ready for sampling or optimization.
For workflows that only need compilation without immediately building a CmdStanModel—CI tests, container image prebuilds, or batch compile scripts—1.0 adds the standalone compile_stan_file(), which returns the executable path. Users who previously used compile = FALSE only to check syntax or read variable structure without compiling can switch to file-level helpers check_syntax_stan_file() and variables_stan_file(), cleanly separating static file checks, standalone binary compilation, and runnable model objects.
Scope, dependency requirements, and downstream compatibility
On the runtime side, the CmdStanR 1.0 RC requires R ≥ 4.0 and CmdStan ≥ 2.37.0 (older CmdStan can be upgraded with install_cmdstan()). Methodologically, researchers who follow the usual path—cmdstan_model() to compile, $sample() to draw, $draws() or $summary() to extract results—should see little breakage; code that must change is concentrated where lazy compile (compile = FALSE / $compile()) or deep customization of C++ options was used explicitly.
Downstream, brms, instantiate, and rethinking have updates or dedicated branches ready for the 1.0 RC. Researchers can install for testing in a fresh R session with remotes::install_github("stan-dev/cmdstanr@v1.0"); packageVersion("cmdstanr") then shows transitional 0.99.0 until the v1.0 branch merges as 1.0.0. The build is still a public release candidate: production statistical pipelines should audit custom packages and scripts for direct calls to the old compile APIs before migrating.
References
-
Jonah (stan-dev). CmdStanR 1.0 release candidate is now available! Stan Forums (Discourse), 2026-10-15.
-
Andrew Gelman. CmdStanR 1.0 release candidate is now available! Statistical Modeling, Causal Inference, and Social Science, 2026-10-20.
-
Stan Development Team. CmdStanR 1.0 Release Candidate Documentation & Changelog / GitHub Repository, 2026-10.
-
Research Methods · Ritual can be imitated; understanding cannot be faked.
-
Compiled and published by Scholay, the one-stop academic platform. If anything here infringes your rights, please let us know and we will take it down.
-
Also published on EnterScholar, a community for scholars in the age of AI.