Checks that a sufficiently recent INLA package and matching executable are available. In non-interactive use it also limits INLA to one thread for repeatability. An optional Cgeneric symbol can be required when an rSPDE feature depends on a model that may not yet be included in every INLA build.
Usage
rspde_safe_inla(
multicore = NULL,
quietly = FALSE,
minimum_version = "26.08.22",
required_symbol = NULL
)
local_rspde_safe_inla(
multicore = FALSE,
quietly = TRUE,
required_symbol = NULL,
envir = parent.frame()
)Arguments
- multicore
Logical; if
TRUE, leave INLA'snum.threadsoption unchanged. IfFALSE, set it to"1:1:1". The default allows multicore only in interactive sessions outside testthat.- quietly
Logical; suppress diagnostic messages when
TRUE.- minimum_version
Minimum acceptable INLA version. This should match the requirement in
DESCRIPTION.- required_symbol
Optional name of a required INLA Cgeneric symbol.
- envir
Environment in which test cleanup handlers are registered.
