diff options
Diffstat (limited to 'tests/testthat/setup_script.R')
-rw-r--r-- | tests/testthat/setup_script.R | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testthat/setup_script.R b/tests/testthat/setup_script.R index 8ffe0b9d..62cdf78e 100644 --- a/tests/testthat/setup_script.R +++ b/tests/testthat/setup_script.R @@ -1,7 +1,7 @@ require(mkin) require(testthat) -# Per default (on my box where I set NOT_CRAN) use all cores minus one +# Per default (on my box where I set NOT_CRAN in .Rprofile) use all cores minus one if (identical(Sys.getenv("NOT_CRAN"), "true")) { n_cores <- parallel::detectCores() - 1 } else { |