mirror of
https://github.com/msberends/AMR.git
synced 2025-04-23 08:33:47 +02:00
Compare commits
3 Commits
0ce9fb4da2
...
229e1bb407
Author | SHA1 | Date | |
---|---|---|---|
229e1bb407 | |||
6e60ddf8d7 | |||
54dd868b22 |
22
.github/workflows/check.yaml
vendored
22
.github/workflows/check.yaml
vendored
@ -108,20 +108,20 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
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: Update package dependencies
|
- name: Cache R packages
|
||||||
|
if: runner.os != 'Windows'
|
||||||
|
uses: actions/cache@v1
|
||||||
|
with:
|
||||||
|
path: ${{ env.R_LIBS_USER }}
|
||||||
|
key: ${{ matrix.config.os }}-r-${{ matrix.config.r }}-20
|
||||||
|
restore-keys: ${{ matrix.config.os }}-r-${{ matrix.config.r }}-20
|
||||||
|
|
||||||
|
- name: Update AMR package dependencies
|
||||||
run: |
|
run: |
|
||||||
install.packages("data-raw/AMR_latest.tar.gz")
|
install.packages("data-raw/AMR_latest.tar.gz")
|
||||||
source("data-raw/_install_deps.R")
|
source("data-raw/_install_deps.R")
|
||||||
shell: Rscript {0}
|
shell: Rscript {0}
|
||||||
|
|
||||||
- name: Cache R packages
|
|
||||||
# if: runner.os != 'Windows'
|
|
||||||
uses: actions/cache@v1
|
|
||||||
with:
|
|
||||||
path: ${{ env.R_LIBS_USER }}
|
|
||||||
key: ${{ matrix.config.os }}-r-${{ matrix.config.r }} # -${{ hashFiles('.github/depends.Rds') }}
|
|
||||||
restore-keys: ${{ matrix.config.os }}-r-${{ matrix.config.r }}
|
|
||||||
|
|
||||||
- name: Session info
|
- name: Session info
|
||||||
run: |
|
run: |
|
||||||
options(width = 100)
|
options(width = 100)
|
||||||
@ -161,10 +161,10 @@ jobs:
|
|||||||
R CMD check AMR --no-manual --no-vignettes
|
R CMD check AMR --no-manual --no-vignettes
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Show testthat output
|
- name: Show unit tests output
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
find . -name 'testthat.Rout*' -exec cat '{}' \; || true
|
find . -name 'tinytest.Rout*' -exec cat '{}' \; || true
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Upload check results
|
- name: Upload check results
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
Package: AMR
|
Package: AMR
|
||||||
Version: 1.6.0.9032
|
Version: 1.6.0.9035
|
||||||
Date: 2021-05-15
|
Date: 2021-05-15
|
||||||
Title: Antimicrobial Resistance Data Analysis
|
Title: Antimicrobial Resistance Data Analysis
|
||||||
Authors@R: c(
|
Authors@R: c(
|
||||||
|
2
NEWS.md
2
NEWS.md
@ -1,4 +1,4 @@
|
|||||||
# `AMR` 1.6.0.9032
|
# `AMR` 1.6.0.9035
|
||||||
## <small>Last updated: 15 May 2021</small>
|
## <small>Last updated: 15 May 2021</small>
|
||||||
|
|
||||||
### New
|
### New
|
||||||
|
Binary file not shown.
@ -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))
|
||||||
}
|
}
|
||||||
|
@ -25,6 +25,8 @@
|
|||||||
|
|
||||||
# test only on GitHub Actions and at home - not on CRAN as tests are lengthy
|
# test only on GitHub Actions and at home - not on CRAN as tests are lengthy
|
||||||
if (identical(Sys.getenv("R_TINYTEST"), "true")) {
|
if (identical(Sys.getenv("R_TINYTEST"), "true")) {
|
||||||
|
print(.libPaths())
|
||||||
|
print(as.data.frame(utils::installed.packages())[, "Version", drop = FALSE])
|
||||||
library(tinytest)
|
library(tinytest)
|
||||||
library(AMR)
|
library(AMR)
|
||||||
test_package("AMR")
|
test_package("AMR")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user