Skip to content

Commit

Permalink
GHA rhub workflow: use .Rprofile to set options(repos)
Browse files Browse the repository at this point in the history
  • Loading branch information
florisvdh committed Sep 17, 2024
1 parent 702358e commit c1b3791
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/rhub.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ jobs:

steps:
- uses: r-hub/actions/checkout@v1
- name: Add additional r-universe repository
run: |
# Add additional r-universe repository
echo 'options(repos = c(getOption("repos"), "https://geocompr.r-universe.dev"))' >> ~/.Rprofile
- uses: r-hub/actions/platform-info@v1
with:
token: ${{ secrets.RHUB_TOKEN }}
Expand Down Expand Up @@ -84,8 +88,7 @@ jobs:
- name: Add additional r-universe repository
run: |
# Add additional r-universe repository
options(repos = c(getOption("repos"), "https://geocompr.r-universe.dev"))
shell: Rscript {0}
echo 'options(repos = c(getOption("repos"), "https://geocompr.r-universe.dev"))' >> ~/.Rprofile
- uses: r-hub/actions/platform-info@v1
with:
token: ${{ secrets.RHUB_TOKEN }}
Expand Down

0 comments on commit c1b3791

Please sign in to comment.