Skip to content

Commit b1893a5

Browse files
committed
Fix: Use setup-r-dependencies action to install system dependencies
- Replace manual dependency installation with r-lib/actions/setup-r-dependencies@v2 - Automatically installs system dependencies like libudunits2 for units package - Fixes 'libudunits2.so.0: cannot open shared object file' error - Uses pak for fast, reliable package installation - Includes sessioninfo for debugging
1 parent 1f49558 commit b1893a5

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,9 @@ jobs:
3434
use-public-rspm: true
3535

3636
- name: Install R dependencies
37-
run: |
38-
install.packages("remotes")
39-
remotes::install_local(".")
40-
shell: Rscript {0}
37+
uses: r-lib/actions/setup-r-dependencies@v2
38+
with:
39+
packages: deps::., any::sessioninfo
4140

4241
- name: Set up Quarto
4342
uses: quarto-dev/quarto-actions/setup@v2

0 commit comments

Comments
 (0)