Skip to content

Commit

Permalink
made the test code robust to not having testthat
Browse files Browse the repository at this point in the history
  • Loading branch information
bertcarnell committed Dec 13, 2022
1 parent 8672ff5 commit db86f48
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/testthat.R
Original file line number Diff line number Diff line change
@@ -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")
}

0 comments on commit db86f48

Please sign in to comment.