Skip to content

Commit 6a332da

Browse files
committed
Skip tests with testthat if not available
1 parent 3392e04 commit 6a332da

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/testthat.R

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1-
library(testthat)
2-
test_check("rtables", reporter = "check")
1+
if (requireNamespace("testthat", quietly = TRUE)) {
2+
library(testthat)
3+
library(rtables)
4+
test_check("rtables", reporter = "check")
5+
}

0 commit comments

Comments
 (0)