mirror of https://github.com/msberends/AMR.git
Compare commits
2 Commits
aeea00881e
...
994d157aa6
Author | SHA1 | Date |
---|---|---|
dr. M.S. (Matthijs) Berends | 994d157aa6 | |
dr. M.S. (Matthijs) Berends | 9d9d62eba4 |
|
@ -95,10 +95,14 @@ jobs:
|
||||||
|
|
||||||
- uses: r-lib/actions/setup-pandoc@master
|
- uses: r-lib/actions/setup-pandoc@master
|
||||||
|
|
||||||
- name: Query dependencies
|
- name: Install remotes package
|
||||||
# if: matrix.config.r != '3.0' && matrix.config.r != '3.1' && matrix.config.r != '3.2'
|
if: matrix.config.r != '3.0'
|
||||||
run: |
|
run: |
|
||||||
install.packages('remotes')
|
install.packages('remotes')
|
||||||
|
shell: Rscript {0}
|
||||||
|
|
||||||
|
- name: Query dependencies
|
||||||
|
run: |
|
||||||
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
|
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
|
||||||
shell: Rscript {0}
|
shell: Rscript {0}
|
||||||
|
|
||||||
|
@ -111,27 +115,15 @@ jobs:
|
||||||
key: ${{ matrix.config.os }}-r-${{ matrix.config.r }}-3-${{ hashFiles('.github/depends.Rds') }}
|
key: ${{ matrix.config.os }}-r-${{ matrix.config.r }}-3-${{ hashFiles('.github/depends.Rds') }}
|
||||||
restore-keys: ${{ matrix.config.os }}-r-${{ matrix.config.r }}-3-
|
restore-keys: ${{ matrix.config.os }}-r-${{ matrix.config.r }}-3-
|
||||||
|
|
||||||
# - name: Install Linux dependencies
|
|
||||||
# if: runner.os == 'Linux' && matrix.config.r != '3.0' && matrix.config.r != '3.1' && matrix.config.r != '3.2'
|
|
||||||
# env:
|
|
||||||
# RHUB_PLATFORM: linux-x86_64-ubuntu-gcc
|
|
||||||
# run: |
|
|
||||||
# Rscript -e "remotes::install_github('r-hub/sysreqs')"
|
|
||||||
# sysreqs=$(Rscript -e "cat(sysreqs::sysreq_commands('DESCRIPTION'))")
|
|
||||||
# sudo -s eval "$sysreqs"
|
|
||||||
|
|
||||||
- name: Install Linux dependencies
|
- name: Install Linux dependencies
|
||||||
if: runner.os == 'Linux'
|
if: runner.os == 'Linux'
|
||||||
# if: matrix.config.r == '3.0' || matrix.config.r == '3.1' || matrix.config.r == '3.2'
|
|
||||||
# env:
|
|
||||||
# RHUB_PLATFORM: linux-x86_64-ubuntu-gcc
|
|
||||||
# update the below with sysreqs::sysreqs("DESCRIPTION") and check the "DEB" entries (for Ubuntu).
|
# update the below with sysreqs::sysreqs("DESCRIPTION") and check the "DEB" entries (for Ubuntu).
|
||||||
# we don't want to depend on the sysreqs pkg here, as it requires a quite new R version
|
# we don't want to depend on the sysreqs pkg here, as it requires a quite new R version
|
||||||
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: Install package dependencies
|
- name: Update package dependencies using remotes package
|
||||||
# if: matrix.config.r != '3.0' && matrix.config.r != '3.1' && matrix.config.r != '3.2'
|
if: matrix.config.r != '3.0'
|
||||||
run: |
|
run: |
|
||||||
remotes::install_deps(dependencies = TRUE)
|
remotes::install_deps(dependencies = TRUE)
|
||||||
shell: Rscript {0}
|
shell: Rscript {0}
|
||||||
|
@ -143,28 +135,8 @@ jobs:
|
||||||
as.data.frame(utils::installed.packages())[, "Version", drop = FALSE]
|
as.data.frame(utils::installed.packages())[, "Version", drop = FALSE]
|
||||||
shell: Rscript {0}
|
shell: Rscript {0}
|
||||||
|
|
||||||
# - name: Run R CMD check
|
- name: Run R CMD check on Windows
|
||||||
# if: matrix.config.r != '3.0' && matrix.config.r != '3.1' && matrix.config.r != '3.2'
|
|
||||||
# env:
|
|
||||||
# _R_CHECK_CRAN_INCOMING_: false
|
|
||||||
# _R_CHECK_LENGTH_1_CONDITION_: verbose
|
|
||||||
# _R_CHECK_LENGTH_1_LOGIC2_: verbose
|
|
||||||
# run: rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran"), error_on = "warning", check_dir = "check")
|
|
||||||
# shell: Rscript {0}
|
|
||||||
|
|
||||||
- name: Unpack AMR package on Linux and macOS
|
|
||||||
if: runner.os != 'Windows'
|
|
||||||
run: |
|
|
||||||
ls -lh
|
|
||||||
tar -xvf data-raw/AMR_latest.tar.gz
|
|
||||||
|
|
||||||
- name: Unpack AMR package on Windows
|
|
||||||
if: runner.os == 'Windows'
|
if: runner.os == 'Windows'
|
||||||
run: |
|
|
||||||
tar -xvf data-raw/AMR_latest.tar.gz
|
|
||||||
|
|
||||||
- name: Run R CMD check
|
|
||||||
# if: matrix.config.r == '3.0' || matrix.config.r == '3.1' || matrix.config.r == '3.2'
|
|
||||||
env:
|
env:
|
||||||
_R_CHECK_CRAN_INCOMING_: false
|
_R_CHECK_CRAN_INCOMING_: false
|
||||||
_R_CHECK_FORCE_SUGGESTS_: false
|
_R_CHECK_FORCE_SUGGESTS_: false
|
||||||
|
@ -172,7 +144,22 @@ jobs:
|
||||||
_R_CHECK_LENGTH_1_CONDITION_: verbose
|
_R_CHECK_LENGTH_1_CONDITION_: verbose
|
||||||
_R_CHECK_LENGTH_1_LOGIC2_: verbose
|
_R_CHECK_LENGTH_1_LOGIC2_: verbose
|
||||||
run: |
|
run: |
|
||||||
R CMD check AMR --no-manual --no-build-vignettes
|
tar -xf data-raw/AMR_latest.tar.gz
|
||||||
|
R CMD check AMR -no-manual -as-cran
|
||||||
|
shell: bash
|
||||||
|
|
||||||
|
- name: Run R CMD check on Linux and macOS
|
||||||
|
if: runner.os != 'Windows'
|
||||||
|
env:
|
||||||
|
_R_CHECK_CRAN_INCOMING_: false
|
||||||
|
_R_CHECK_FORCE_SUGGESTS_: false
|
||||||
|
_R_CHECK_DEPENDS_ONLY_: true
|
||||||
|
_R_CHECK_LENGTH_1_CONDITION_: verbose
|
||||||
|
_R_CHECK_LENGTH_1_LOGIC2_: verbose
|
||||||
|
run: |
|
||||||
|
tar -xf data-raw/AMR_latest.tar.gz
|
||||||
|
R CMD check AMR --no-manual --as-cran
|
||||||
|
shell: bash
|
||||||
|
|
||||||
- name: Show testthat output
|
- name: Show testthat output
|
||||||
if: always()
|
if: always()
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
Package: AMR
|
Package: AMR
|
||||||
Version: 1.6.0.9023
|
Version: 1.6.0.9025
|
||||||
Date: 2021-05-13
|
Date: 2021-05-13
|
||||||
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.9023
|
# `AMR` 1.6.0.9025
|
||||||
## <small>Last updated: 13 May 2021</small>
|
## <small>Last updated: 13 May 2021</small>
|
||||||
|
|
||||||
### New
|
### New
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
# able to install it. Yet, we want basic R CMD CHECK's in those R versions
|
# able to install it. Yet, we want basic R CMD CHECK's in those R versions
|
||||||
# as well, so only run unit tests in later R versions:
|
# as well, so only run unit tests in later R versions:
|
||||||
if (require("testthat", warn.conflicts = FALSE)) {
|
if (require("testthat", warn.conflicts = FALSE)) {
|
||||||
|
library(testthat)
|
||||||
library(AMR)
|
library(AMR)
|
||||||
test_check("AMR")
|
test_check("AMR")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue