Load INLA safely for examples and tests
Loads the INLA package with requireNamespace("INLA", quietly = TRUE)
, and
optionally checks and sets the multicore num.threads
INLA option.
bru_safe_inla(multicore = NULL, quietly = FALSE)
multicore |
logical; if |
quietly |
logical; if |
logical; TRUE
if INLA was loaded safely, otherwise FALSE
## Not run: if (bru_safe_inla()) { # Run inla dependent calculations } ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.