Loads the INLA package with requireNamespace("INLA", quietly = TRUE)
, and
optionally checks and sets the multicore num.threads
INLA option.
Arguments
- multicore
logical; if
TRUE
, multiple cores are allowed, and the INLAnum.threads
option is not checked or altered. IfFALSE
, forcesnum.threads="1:1"
. Default: NULL, checks if running in testthat or non-interactively, in which case setsmulticore=FALSE
, otherwiseTRUE
.- quietly
logical; if
FALSE
andmulticore
isFALSE
, prints a message if thenum.threads
option isn't already "1.1" to alert the user to the change. Default: FALSE.- minimum_version
character; the minimum required INLA version. Default 23.1.31 (should always match the requirement in the package DESCRIPTION)