local_exc_testthat | R Documentation |
Local helper functions for package unit tests
local_exc_safe_inla(multicore = FALSE, quietly = TRUE, envir = parent.frame())
multicore |
logical; if 'TRUE', multiple cores are allowed, and the INLA 'num.threads' option is not checked or altered. Default: 'FALSE', multicore not allowed (used for examples and unit tests). |
quietly |
logical; if 'TRUE', prints diagnostic messages. A message is always printed if the INLA 'num.threads' option is altered, regardless of the 'quietly' argument. Default: TRUE. |
envir |
environment for exit handlers |
local_exc_safe_inla()
: Tests should set num.threads = "1:1" to ensure
within-system repeatability by calling 'local_exc_safe_inla()';
see also [exc_safe_inla()]
## Not run:
local_exc_safe_inla(multicore = FALSE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.