Skip to content

Commit b86833a

Browse files
committed
Use r-lib/actions/setup-r-dependencies@v2 to install dependencies
This has the benefit of installing system dependencies on Linux, which means the system dependency of igraph (libgslpk) is now automatically installed. The lack of this library was what prevented the imager package from loading. Signed-off-by: Rodrigo Tobar <rtobar@icrar.org>
1 parent 3143d91 commit b86833a

1 file changed

Lines changed: 12 additions & 10 deletions

File tree

.github/workflows/main.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,20 @@ jobs:
4444
http-user-agent: ${{ matrix.config.http-user-agent }}
4545
use-public-rspm: true
4646

47+
- uses: r-lib/actions/setup-r-dependencies@v2
48+
with:
49+
dependencies: '"hard"'
50+
extra-packages: any::rcmdcheck,
51+
github::asgr/Rwcs@master,
52+
github::asgr/Rfits@master,
53+
github::ICRAR/ProFit@master,
54+
any::hdf5r,
55+
any::knitr,
56+
any::rmarkdown,
57+
any::imager
58+
4759
- name: Install dependencies
4860
run: |
49-
install.packages('remotes')
50-
install.packages('hdf5r')
51-
install.packages('knitr')
52-
install.packages('rmarkdown')
53-
install.packages('imager')
54-
remotes::install_deps(dependencies = TRUE)
55-
remotes::install_cran("rcmdcheck")
56-
remotes::install_github("asgr/Rwcs", ref="master")
57-
remotes::install_github("asgr/Rfits", ref="master")
58-
remotes::install_github("ICRAR/ProFit", ref="master")
5961
shell: Rscript {0}
6062

6163
- uses: r-lib/actions/check-r-package@v2

0 commit comments

Comments
 (0)