vignettes/children/comparison-with-rstan.md

Different ways of interfacing with Stan's C++

The RStan interface (rstan package) is an in-memory interface to Stan and relies on R packages like Rcpp and inline to call C++ code from R. On the other hand, the CmdStanR interface does not directly call any C++ code from R, instead relying on the CmdStan interface behind the scenes for compilation, running algorithms, and writing results to output files.

Advantages of RStan

Advantages of CmdStanR



stan-dev/cmdstanr documentation built on April 12, 2025, 8:40 p.m.