Skip to content

Commit

Permalink
GHA: Don't check vignettes for R (< 3.5.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
HenrikBengtsson committed Jul 31, 2023
1 parent c131931 commit ed7df6b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,13 @@ jobs:
shell: Rscript {0}

- name: Check
run: rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran", if (.Platform$OS.type == "windows" && getRversion() >= "4.2.0") "--no-multiarch"), check_dir = "check")
run: |
if (nzchar(Sys.getenv("R_FUTURE_PLAN")) || getRversion() < "3.5.0") Sys.setenv(RCMDCHECK_ERROR_ON = "error")
rcmdcheck::rcmdcheck(
build_args = if (getRversion() < "3.5.0") "--no-build-vignettes",
args = c("--no-manual", "--as-cran", if (.Platform$OS.type == "windows" && getRversion() >= "4.2.0") "--no-multiarch", if (getRversion() < "3.5.0") c("--no-vignettes", "--no-build-vignettes", "--ignore-vignettes")),
check_dir = "check"
)
shell: Rscript {0}

- name: Upload check results
Expand Down

0 comments on commit ed7df6b

Please sign in to comment.