(v1.4.0.9053) unit test old R versions

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2020-12-29 21:23:01 +01:00
1 parent 526f8afb08
commit d3f007bf65
89 files changed
+467 -432

No files matched your search

+8 -4
View File
@@ -23,7 +23,11 @@
# how to conduct AMR analysis: https://msberends.github.io/AMR/ #
# ==================================================================== #
library(testthat, warn.conflicts = FALSE)
library(AMR)
test_check("AMR")
if (require("testthat")) {
# the testthat package is in Suggests, but very old R versions will not be
# able to install it. Yet, we want checks in those R versions as well, so
# only run unit tests in later R versions:
library(testthat, warn.conflicts = FALSE)
library(AMR)
test_check("AMR")
}