1
0
mirror of https://github.com/msberends/AMR.git synced 2024-12-26 04:46:11 +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] as.data.frame(utils::installed.packages())[, "Version", drop = FALSE]
shell: Rscript {0} shell: Rscript {0}
# # - name: Only keep vignettes on release version - name: Remove vignettes on R without knitr support
# - name: Remove vignettes if: matrix.config.r == '3.0' || matrix.config.r == '3.1' || matrix.config.r == '3.2'
# # if: matrix.config.r != 'release' # writing to DESCRIPTION2 and then moving to DESCRIPTION is required for R < 3.3 as writeLines() cannot overwrite
# if: always() run: |
# # writing to DESCRIPTION2 and then moving to DESCRIPTION is required for R < 3.3 as writeLines() cannot overwrite rm -rf AMR/vignettes
# run: | Rscript -e "writeLines(readLines('AMR/DESCRIPTION')[!grepl('VignetteBuilder', readLines('AMR/DESCRIPTION'))], 'AMR/DESCRIPTION2')"
# rm -rf AMR/vignettes rm AMR/DESCRIPTION
# Rscript -e "writeLines(readLines('AMR/DESCRIPTION')[!grepl('VignetteBuilder', readLines('AMR/DESCRIPTION'))], 'AMR/DESCRIPTION2')" mv AMR/DESCRIPTION2 AMR/DESCRIPTION
# rm AMR/DESCRIPTION shell: bash
# mv AMR/DESCRIPTION2 AMR/DESCRIPTION
# shell: bash
- name: Run R CMD check - name: Run R CMD check
if: always() if: always()