Skip to content

Commit

Permalink
Seems like CRAN started setting one of those env vars to NA
Browse files Browse the repository at this point in the history
closes #448
  • Loading branch information
mrcaseb committed Dec 6, 2023
1 parent 8613ffa commit 3129aac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/setup.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ cpu_check <- as.numeric(
)
)

if (any(cpu_check != 0)) {
if (any(is.na(cpu_check)) || any(cpu_check[!is.na(cpu_check)] != 0)) {
cores <- min(
floor(as.integer(Sys.getenv("_R_CHECK_EXAMPLE_TIMING_CPU_TO_ELAPSED_THRESHOLD_"))),
floor(as.integer(Sys.getenv("_R_CHECK_TEST_TIMING_CPU_TO_ELAPSED_THRESHOLD_"))),
Expand Down

0 comments on commit 3129aac

Please sign in to comment.