diff --git a/tests/testthat/test-bioc.R b/tests/testthat/test-bioc.R index db4e0edc..ec1709b7 100644 --- a/tests/testthat/test-bioc.R +++ b/tests/testthat/test-bioc.R @@ -10,6 +10,7 @@ test_that("bioc is standalone", { funs <- Filter(function(x) is.function(stenv[[x]]), objs) funobjs <- mget(funs, stenv) + skip_if_not_installed("codetools") expect_message( mapply(codetools::checkUsage, funobjs, funs, MoreArgs = list(report = message)), diff --git a/tests/testthat/test-json.R b/tests/testthat/test-json.R index 3ebf29a8..6031007e 100644 --- a/tests/testthat/test-json.R +++ b/tests/testthat/test-json.R @@ -10,6 +10,7 @@ test_that("JSON is standalone", { funs <- Filter(function(x) is.function(stenv[[x]]), objs) funobjs <- mget(funs, stenv) + skip_if_not_installed("codetools") expect_message( mapply(codetools::checkUsage, funobjs, funs, MoreArgs = list(report = message)),