diff --git a/tests/testthat/test-callback.R b/tests/testthat/test-callback.R index 0d151157..b4ec6014 100644 --- a/tests/testthat/test-callback.R +++ b/tests/testthat/test-callback.R @@ -1,3 +1,5 @@ +skip_on_cran() + test_that("aumc callbacks", { skip_if_not_installed("mockthat") diff --git a/tests/testthat/test-concept.R b/tests/testthat/test-concept.R index bde36140..a96827fb 100644 --- a/tests/testthat/test-concept.R +++ b/tests/testthat/test-concept.R @@ -1,3 +1,5 @@ +skip_on_cran() + test_that("load hirid items", { skip_if_not_installed("mockthat") diff --git a/tests/testthat/test-helpers.R b/tests/testthat/test-helpers.R index 14b7093f..82b828dd 100644 --- a/tests/testthat/test-helpers.R +++ b/tests/testthat/test-helpers.R @@ -1,3 +1,5 @@ +skip_on_cran() + test_that("expect_all_identical", { expect_success(expect_all_identical("foo", "foo")) diff --git a/tests/testthat/test-scores.R b/tests/testthat/test-scores.R index 169c43c4..8ff24de9 100644 --- a/tests/testthat/test-scores.R +++ b/tests/testthat/test-scores.R @@ -1,3 +1,5 @@ +skip_on_cran() + skip_if_srcs_missing(c("mimic_demo", "eicu_demo")) so_mi <- load_concepts("sofa", "mimic_demo", verbose = FALSE) diff --git a/tests/testthat/test-setup-attach.R b/tests/testthat/test-setup-attach.R index 6eea978b..9508a395 100644 --- a/tests/testthat/test-setup-attach.R +++ b/tests/testthat/test-setup-attach.R @@ -1,3 +1,5 @@ +skip_on_cran() + test_that("auto attach env var", { srcs <- c("mimic_demo", "eicu_demo") diff --git a/tests/testthat/test-setup-download.R b/tests/testthat/test-setup-download.R index 7c862eda..77971fe3 100644 --- a/tests/testthat/test-setup-download.R +++ b/tests/testthat/test-setup-download.R @@ -1,3 +1,5 @@ +skip_on_cran() + mock_fetch_memory <- function(url, handle, ...) { file <- system.file("testdata", paste0(basename(url), ".rds"), diff --git a/tests/testthat/test-tbl-base.R b/tests/testthat/test-tbl-base.R index 5ed86e16..4f902465 100644 --- a/tests/testthat/test-tbl-base.R +++ b/tests/testthat/test-tbl-base.R @@ -1,3 +1,5 @@ +skip_on_cran() + test_that("icu_tbl subsetting", { col <- runif(10) diff --git a/tests/testthat/test-tbl-class.R b/tests/testthat/test-tbl-class.R index 86115420..3e2308a9 100644 --- a/tests/testthat/test-tbl-class.R +++ b/tests/testthat/test-tbl-class.R @@ -1,3 +1,5 @@ +skip_on_cran() + test_that("id_tbl constructors", { tbl <- id_tbl(a = 1:10, b = rnorm(10)) diff --git a/tests/testthat/test-tbl-utils.R b/tests/testthat/test-tbl-utils.R index 87c5a367..2346056e 100644 --- a/tests/testthat/test-tbl-utils.R +++ b/tests/testthat/test-tbl-utils.R @@ -1,3 +1,5 @@ +skip_on_cran() + test_that("rename_cols for id_tbl", { tbl <- id_tbl(a = 1:10, b = rnorm(10), c = rnorm(10)) diff --git a/tests/testthat/test-utils-cli.R b/tests/testthat/test-utils-cli.R index 0f118fe9..b7195ba2 100644 --- a/tests/testthat/test-utils-cli.R +++ b/tests/testthat/test-utils-cli.R @@ -1,3 +1,5 @@ +skip_on_cran() + test_that("cli progress", { skip_if_not_installed("mockthat") diff --git a/tests/testthat/test-utils-file.R b/tests/testthat/test-utils-file.R index 09c368aa..1f78e874 100644 --- a/tests/testthat/test-utils-file.R +++ b/tests/testthat/test-utils-file.R @@ -1,3 +1,5 @@ +skip_on_cran() + test_that("data dir", { dir <- withr::with_envvar(