Compiles one or more Stan models located in inst/stan/ and caches the
executables in the user's cache directory. This avoids compilation during
package installation and speeds up first use.
Arguments
- models
Character vector of model base names (no
.stanextension). UseNULLto compile all models shipped ininst/stan/.- force_recompile
Logical. Force recompilation even if cached exe exists.
- cpp_options, stanc_options
Lists forwarded to cmdstanr::cmdstan_model().
- quiet
Logical. If
FALSE, prints CmdStan compilation output.- stop_on_error
Logical. If
TRUE, stops at the first error.- print_dt
Logical. If
TRUEprints adata.tablewith columns:model,ok,exe_file,elapsed_sec,error. DefaultFALSE.
