diff --git a/tests/testthat/test-DBItest.R b/tests/testthat/test-DBItest.R index 82ee7c4..3c83b5f 100644 --- a/tests/testthat/test-DBItest.R +++ b/tests/testthat/test-DBItest.R @@ -1,3 +1,3 @@ -if (identical(Sys.getenv("NOT_CRAN"), "true") && packageVersion("DBItest") >= "1.7.2") { +if (requireNamespace("DBItest", quietly = TRUE) && identical(Sys.getenv("NOT_CRAN"), "true") && packageVersion("DBItest") >= "1.7.2") { DBItest::test_all() }