library("idealstan")
id_backend_available()[1] TRUE
id_backend_available("stanr")[1] TRUE
id_estimate() runs Stan with the ‘cmdstanr’ package, which needs a CmdStan installation, or with the ‘stanr’ package. Neither is on CRAN. This function says whether the backend that id_estimate() would use is installed, so that code can estimate models only when it is (the package’s examples use it this way).
id_backend_available(backend = NULL)
backend
|
“cmdstanr” or “stanr” to check that backend. If NULL (the default), the backend that id_estimate() uses when its backend argument isn’t given: the option idealstan.backend if it is set, and otherwise ‘cmdstanr’ if it and CmdStan are installed and ‘stanr’ if not.
|
TRUE if the backend is installed and can run models, FALSE if not.