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

(v1.6.0.9040) unit tests

This commit is contained in:
2021-05-16 09:25:36 +02:00
parent 6c3ab19e3a
commit 00496e45b7
18 changed files with 72 additions and 79 deletions

View File

@ -24,11 +24,10 @@
# ==================================================================== #
# test only on GitHub Actions and at home - not on CRAN as tests are lengthy
if (identical(Sys.getenv("R_TINYTEST"), "true")) {
print(Sys.getenv("R_LIBS_USER"))
.libPaths(c("/Users/runner/work/_temp/Library", .libPaths()))
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()))
print(.libPaths())
print(as.data.frame(utils::installed.packages())[, "Version", drop = FALSE])
library(tinytest)
library(AMR)
test_package("AMR")