diff --git a/tests/testthat.R b/tests/testthat.R index eb84667..d6562c5 100644 --- a/tests/testthat.R +++ b/tests/testthat.R @@ -1,4 +1,7 @@ -library(testthat) -library(triangle) +if (require(testthat)) { + library(triangle) -test_check("triangle") + test_check("triangle") +} else { + cat("\ntestthat is not available\n") +}