Light wrapper around the same logic used by sccomp. Verifies that cmdstanr (>= 0.9.0) and a working CmdStan install are available; if not, it offers an actionable message (and, in non-interactive sessions, attempts to install cmdstanr from the Stan-dev R-Universe).

check_and_install_cmdstanr()

Value

Invisibly TRUE if everything is available, FALSE otherwise.

Examples

if (FALSE) { # \dontrun{
check_and_install_cmdstanr()
} # }