Checks the C++ toolchain, locates CmdStan, and installs or upgrades
CmdStan if needed. Prefer setup_interface() for user-facing setup since
it performs argument validation and defaults; setup_cmdstanr() assumes
inputs are already checked.
Arguments
- quiet
Logical. If
TRUE, suppresses status messages.- force
Logical. If
TRUE, allows installation in non-interactive sessions.- reinstall
Logical. If
TRUE, forces re-installation.- check_updates
Logical. If
TRUE, checks for CmdStan updates.- cores
Integer. Number of cores to use. Defaults to
getOption("mc.cores"). You must setoptions(mc.cores = ...)or passcoresexplicitly.