Load INLA safely for examples and testsSource:
Loads the INLA package with
requireNamespace("INLA", quietly = TRUE), and
optionally checks and sets the multicore
num.threads INLA option.
TRUE, multiple cores are allowed, and the INLA
num.threadsoption is not checked or altered. If
num.threads="1:1". Default: NULL, checks if running in testthat or non-interactively, in which case sets
TRUE, prints diagnostic messages. Default: FALSE.
character; the minimum required INLA version. Default 23.1.31 (should always match the requirement in the package DESCRIPTION)