Control which Stan backend mlumr uses for model fitting. The default engine
is "rstan" (compiled C++ models via rstantools). Users who prefer cmdstanr
can switch engines after installation.
Details
When switching to "cmdstanr", this function checks whether the cmdstanr
package and CmdStan toolchain are installed. If either is missing, it offers
to install them interactively.
Engine names must be matched exactly. Partial strings such as "c" are not
accepted.
The engine preference is stored as options(mlumr.stan_engine = ...) and
persists for the current R session. To set a permanent default, add to your
.Rprofile:
