From 67b7d7da82a659bdbb580d6badc6cee9a406ff9a Mon Sep 17 00:00:00 2001 From: njtierney Date: Wed, 6 Nov 2024 14:56:54 +1100 Subject: [PATCH] set shell default to Rscript, and ensure package is installed before using internal function --- .github/workflows/R-CMD-check.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index 04ba25cf..38867b05 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -10,6 +10,10 @@ on: name: R-CMD-check.yaml +defaults: + run: + shell: Rscript {0} + permissions: read-all jobs: @@ -49,15 +53,16 @@ jobs: extra-packages: any::rcmdcheck needs: check + - name: Install package + deps + run: remotes::install_local(dependencies = TRUE, force = TRUE) + - name: Install greta deps run: | library(greta) greta::install_greta_deps(timeout = 50) - shell: Rscript {0} - name: Situation Report on greta install run: greta::greta_sitrep() - shell: Rscript {0} - uses: r-lib/actions/check-r-package@v2 with: