Skip to content

Commit

Permalink
set shell default to Rscript, and ensure package is installed before …
Browse files Browse the repository at this point in the history
…using internal function
  • Loading branch information
njtierney committed Nov 6, 2024
1 parent 154f14b commit 67b7d7d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:

name: R-CMD-check.yaml

defaults:
run:
shell: Rscript {0}

permissions: read-all

jobs:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 67b7d7d

Please sign in to comment.