inst/test-tools.R

#### Will be sourced by several R scripts in ../tests/

### ------- Part I & -- unrelated to "Matrix" classes ---------------------
### ------- Part II  -- related to matrices, but *not* "Matrix" -----------
source(system.file("test-tools-1.R",      package = "Matrix"),
       keep.source = FALSE)

### ------- Part III --  "Matrix" (classes) specific ----------------------
source(system.file("test-tools-Matrix.R", package = "Matrix"),
       keep.source = FALSE)

if(!exists("doExtras", mode="logical")) # << only if not set *before*
doExtras <- interactive() || nzchar(Sys.getenv("R_MATRIX_CHECK_EXTRA"))

Try the Matrix package in your browser

Any scripts or data that you put into this service are public.

Matrix documentation built on Nov. 14, 2023, 5:06 p.m.