Skip to content

Commit

Permalink
test: Only run if DBItest is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Nov 5, 2023
1 parent 5484c7e commit 336bbad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test-DBItest.R
Original file line number Diff line number Diff line change
@@ -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()
}

0 comments on commit 336bbad

Please sign in to comment.