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

No vignettes on old R unit tests

This commit is contained in:
dr. M.S. (Matthijs) Berends 2021-10-03 23:49:46 +02:00 committed by GitHub
parent 9b97233be2
commit 7a0ecd6c3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -119,17 +119,15 @@ jobs:
as.data.frame(utils::installed.packages())[, "Version", drop = FALSE]
shell: Rscript {0}
# # - name: Only keep vignettes on release version
# - name: Remove vignettes
# # if: matrix.config.r != 'release'
# if: always()
# # 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
# shell: bash
- 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
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
shell: bash
- name: Run R CMD check
if: always()