From f27499f2e0c5e1b1794627e9fbb6fe2905688b37 Mon Sep 17 00:00:00 2001 From: Matthew Kay Date: Tue, 23 Apr 2024 22:09:27 -0500 Subject: [PATCH] make sysreqs work on older versions that we dont check vignettes on anyway --- .github/workflows/R-CMD-check.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index abda78a9..fa1a40f2 100755 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -66,7 +66,7 @@ jobs: RHUB_PLATFORM: linux-x86_64-ubuntu-gcc run: | Rscript -e "install.packages('pak')" - sysreqs=$(Rscript -e "cat(pak::pkg_sysreqs('.', dependencies = TRUE)[['install_scripts']])") + sysreqs=$(Rscript -e "cat(tryCatch(pak::pkg_sysreqs('.', dependencies = TRUE), error = function(e) pak::pkg_sysreqs('.'))[['install_scripts']])") sudo -s eval "$sysreqs" - name: Install dependencies