Skip to content

Commit 26b989c

Browse files
committed
* different approach to installing remotes
* specify `shell: Rscript {0}` when running R code
1 parent dadfedb commit 26b989c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/test-coverage.yaml

+7-7
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,12 @@ jobs:
2525

2626
- uses: r-lib/actions/setup-r-dependencies@v2
2727
with:
28-
extra-packages: any::covr, any::xml2
28+
extra-packages: |
29+
any::covr
30+
any::xml2
31+
any::remotes
2932
needs: coverage
3033

31-
- name: Install remotes
32-
if: steps.r-package-cache.outputs.cache-hit != 'true'
33-
run: install.packages("remotes")
34-
3534
- name: Install system dependencies
3635
if: runner.os == 'Linux'
3736
shell: bash
@@ -43,18 +42,19 @@ jobs:
4342
sudo $cmd
4443
done < <(Rscript -e "writeLines(remotes::system_requirements('$ID-$VERSION_ID'))")
4544
46-
4745
- name: Install package + deps
4846
run: remotes::install_local(dependencies = TRUE, force = TRUE)
47+
shell: Rscript {0}
4948

5049
- name: Install greta deps
5150
run: |
5251
library(greta)
5352
greta::install_greta_deps(timeout = 50)
53+
shell: Rscript {0}
5454

5555
- name: Situation Report on greta install
5656
run: greta::greta_sitrep()
57-
57+
shell: Rscript {0}
5858

5959
- name: Test coverage
6060
run: |

0 commit comments

Comments
 (0)