1
0
mirror of https://github.com/msberends/AMR.git synced 2025-07-09 06:51:48 +02:00

(v1.4.0.9053) unit test old R versions

This commit is contained in:
2020-12-29 21:23:01 +01:00
parent 526f8afb08
commit d3f007bf65
89 changed files with 467 additions and 432 deletions

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")
}