1
0
mirror of https://github.com/msberends/AMR.git synced 2024-12-25 18:06:12 +01:00

unit test fix

This commit is contained in:
dr. M.S. (Matthijs) Berends 2022-08-28 20:10:05 +02:00
parent c44ddf272f
commit 21b4552f5a
3 changed files with 10 additions and 12 deletions

View File

@ -112,13 +112,13 @@ jobs:
shell: Rscript {0}
- name: Remove vignettes on R without knitr support
if: matrix.config.r == '3.0' || matrix.config.r == '3.1' || matrix.config.r == '3.2'
# writing to DESCRIPTION2 and then moving to DESCRIPTION is required for R < 3.3 as writeLines() cannot overwrite
if: matrix.config.r == '3.0' || matrix.config.r == '3.1' || matrix.config.r == '3.2' || matrix.config.r == '3.3'
# writing to DESCRIPTION2 and then moving to DESCRIPTION is required for R <= 3.3 as writeLines() cannot overwrite
run: |
rm -rf AMR/vignettes
Rscript -e "writeLines(readLines('AMR/DESCRIPTION')[!grepl('VignetteBuilder', readLines('AMR/DESCRIPTION'))], 'AMR/DESCRIPTION2')"
rm AMR/DESCRIPTION
mv AMR/DESCRIPTION2 AMR/DESCRIPTION
rm -rf vignettes
Rscript -e "writeLines(readLines('DESCRIPTION')[!grepl('VignetteBuilder', readLines('DESCRIPTION'))], 'DESCRIPTION2')"
rm DESCRIPTION
mv DESCRIPTION2 DESCRIPTION
shell: bash
- name: Run R CMD check
@ -135,7 +135,6 @@ jobs:
R_RUN_TINYTEST: true
run: |
cd ..
ls -lh
R CMD build AMR
R CMD check --no-manual --run-donttest --run-dontrun AMR_*.tar.gz
shell: bash
@ -143,8 +142,7 @@ jobs:
- name: Show unit tests output
if: always()
run: |
ls -lh
cd AMR
cd ../AMR.Rcheck
find . -name 'tinytest.Rout*' -exec cat '{}' \; || true
shell: bash
@ -153,4 +151,4 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: artifacts-${{ matrix.config.os }}-r${{ matrix.config.r }}
path: AMR.Rcheck
path: ../AMR.Rcheck

View File

@ -1,5 +1,5 @@
Package: AMR
Version: 1.8.1.9040
Version: 1.8.1.9041
Date: 2022-08-28
Title: Antimicrobial Resistance Data Analysis
Description: Functions to simplify and standardise antimicrobial resistance (AMR)

View File

@ -1,4 +1,4 @@
# AMR 1.8.1.9040
# AMR 1.8.1.9041
### New
* EUCAST 2022 and CLSI 2022 guidelines have been added for `as.rsi()`. EUCAST 2022 is now the new default guideline for all MIC and disks diffusion interpretations.