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:
@ -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")
|
||||
|
Reference in New Issue
Block a user