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

unit test fix

This commit is contained in:
2022-08-28 19:17:12 +02:00
parent 0d67db4f32
commit 71db246d5c
27 changed files with 51 additions and 74 deletions

View File

@ -27,8 +27,9 @@
if (identical(Sys.getenv("R_RUN_TINYTEST"), "true")) {
# env var 'R_LIBS_USER' got overwritten during 'R CMD check' in GitHub Actions, so:
.libPaths(c(Sys.getenv("R_LIBS_USER_GH_ACTIONS"), .libPaths()))
if (AMR:::pkg_is_available("tinytest")) {
if (AMR:::pkg_is_available("tinytest", also_load = TRUE)) {
library(AMR)
set_AMR_locale("English")
out <- test_package("AMR",
testdir = ifelse(AMR:::dir.exists("inst/tinytest"),
"inst/tinytest",
@ -37,7 +38,7 @@ if (identical(Sys.getenv("R_RUN_TINYTEST"), "true")) {
verbose = 99,
color = FALSE
)
cat("SUMMARY:\n")
cat("\n\nSUMMARY:\n")
print(summary(out))
}
}