Skip to content

Commit

Permalink
Do not run tests on CRAN
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborcsardi committed Mar 22, 2024
1 parent 371467a commit 68ffe03
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions tests/testthat.R
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@

library(callr)

if (callr:::is_false_check_env_var("_R_CHECK_FORCE_SUGGESTS_")) {
if (requireNamespace("testthat", quietly = TRUE)) {
if (Sys.getenv("NOT_CRAN") == "true") {
if (callr:::is_false_check_env_var("_R_CHECK_FORCE_SUGGESTS_")) {
if (requireNamespace("testthat", quietly = TRUE)) {
library(testthat)
test_check("callr")
}
} else {
library(testthat)
test_check("callr")
}
} else {
library(testthat)
test_check("callr")
}

0 comments on commit 68ffe03

Please sign in to comment.