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

(v1.6.0.9034) unit tests

This commit is contained in:
2021-05-15 22:35:57 +02:00
parent 54dd868b22
commit 6e60ddf8d7
2 changed files with 3 additions and 3 deletions

View File

@ -31,7 +31,7 @@ to_update <- as.data.frame(old.packages(), stringsAsFactors = FALSE)
for (i in seq_len(length(to_install))) {
cat("Installing package", to_install[i], "\n")
tryCatch(install.packages(to_install[i], repos = "https://cran.rstudio.com/", dependencies = TRUE, quiet = TRUE),
message = function(m) invisible(),
# message = function(m) invisible(),
warning = function(w) message(w$message),
error = function(e) message(e$message))
}
@ -39,7 +39,7 @@ for (i in seq_len(length(to_install))) {
for (i in seq_len(length(to_update))) {
cat("Updating package", to_install[i], "\n")
tryCatch(update.packages(to_update[i], repos = "https://cran.rstudio.com/", ask = FALSE),
message = function(m) invisible(),
# message = function(m) invisible(),
warning = function(w) message(w$message),
error = function(e) message(e$message))
}