mirror of
https://github.com/msberends/AMR.git
synced 2024-12-26 06:06:12 +01:00
(v1.6.0.9034) unit tests
This commit is contained in:
parent
54dd868b22
commit
6e60ddf8d7
2
.github/workflows/check.yaml
vendored
2
.github/workflows/check.yaml
vendored
@ -109,7 +109,7 @@ jobs:
|
|||||||
sudo apt install -y libssl-dev pandoc pandoc-citeproc libxml2-dev libicu-dev libcurl4-openssl-dev
|
sudo apt install -y libssl-dev pandoc pandoc-citeproc libxml2-dev libicu-dev libcurl4-openssl-dev
|
||||||
|
|
||||||
- name: Cache R packages
|
- name: Cache R packages
|
||||||
# if: runner.os != 'Windows'
|
if: runner.os != 'Windows'
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: ${{ env.R_LIBS_USER }}
|
path: ${{ env.R_LIBS_USER }}
|
||||||
|
@ -31,7 +31,7 @@ to_update <- as.data.frame(old.packages(), stringsAsFactors = FALSE)
|
|||||||
for (i in seq_len(length(to_install))) {
|
for (i in seq_len(length(to_install))) {
|
||||||
cat("Installing package", to_install[i], "\n")
|
cat("Installing package", to_install[i], "\n")
|
||||||
tryCatch(install.packages(to_install[i], repos = "https://cran.rstudio.com/", dependencies = TRUE, quiet = TRUE),
|
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),
|
warning = function(w) message(w$message),
|
||||||
error = function(e) message(e$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))) {
|
for (i in seq_len(length(to_update))) {
|
||||||
cat("Updating package", to_install[i], "\n")
|
cat("Updating package", to_install[i], "\n")
|
||||||
tryCatch(update.packages(to_update[i], repos = "https://cran.rstudio.com/", ask = FALSE),
|
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),
|
warning = function(w) message(w$message),
|
||||||
error = function(e) message(e$message))
|
error = function(e) message(e$message))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user