Skip to content

Commit ecba598

Browse files
committed
GHA rhub workflow: run options(repos) in R shell to fix Windows
1 parent 26f22e7 commit ecba598

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/rhub.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ jobs:
8888
- name: Add additional r-universe repository
8989
run: |
9090
# Add additional r-universe repository
91-
echo 'options(repos = c(getOption("repos"), "https://geocompr.r-universe.dev"))' >> ~/.Rprofile
92-
shell: bash
91+
cat('\noptions(repos = c(getOption("repos"), "https://geocompr.r-universe.dev"))\n', file = "~/.Rprofile", append = TRUE)
92+
shell: Rscript {0}
9393
- uses: r-hub/actions/platform-info@v1
9494
with:
9595
token: ${{ secrets.RHUB_TOKEN }}

0 commit comments

Comments
 (0)