bru_safe_inla {inlabru} | R Documentation |
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, minimum_version = "23.1.31")
multicore |
logical; if |
quietly |
logical; if |
minimum_version |
character; the minimum required INLA version. Default 23.1.31 (should always match the requirement in the package DESCRIPTION) |
logical; TRUE
if INLA was loaded safely, otherwise FALSE
## Not run:
if (bru_safe_inla()) {
# Run inla dependent calculations
}
## End(Not run)