Validate a Bayesian Backend Environment
Source:R/backend-reliability.R
validate_backend_environment.RdChecks whether the packages and external runtime required by one approved
gp3bayes backend are available. With compile_test = TRUE, an optional
minimal compiler smoke test is performed. The smoke test does not fit a
statistical model and writes no persistent files.
Usage
validate_backend_environment(
backend = c("rstan", "cmdstanr"),
compile_test = FALSE,
strict = FALSE
)Examples
validate_backend_environment("rstan")
#> <gp3bayes_backend_environment>
#> Backend: rstan
#> Status: ready
#> Compiler smoke test requested: FALSE
#> check status detail
#> brms_package pass 2.23.0
#> backend_package pass 2.32.7
#> external_runtime pass managed by rstan package/toolchain
#> compiler_smoke_test not_assessed not requested
validate_backend_environment("cmdstanr")
#> <gp3bayes_backend_environment>
#> Backend: cmdstanr
#> Status: fail
#> Compiler smoke test requested: FALSE
#> check status detail
#> brms_package pass 2.23.0
#> backend_package pass 0.9.0
#> external_runtime fail <NA>
#> compiler_smoke_test not_assessed not requested