Skip to content

Commit

Permalink
🩺 Update R CMD check in GitHub Actions
Browse files Browse the repository at this point in the history
* test solution for #8 (attempt 1)
* install 'units' dependency correctly on macOS r-devel
  • Loading branch information
idblr committed Jul 10, 2024
1 parent 36309b4 commit bc64e30
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,6 @@ jobs:
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-latest, r: 'release'}
- {os: ubuntu-latest, r: 'oldrel'}
# - {os: ubuntu-latest, r: 'oldrel-1'}
# - {os: ubuntu-latest, r: 'oldrel-2'}
# # dependencies 'DescTools' and 'pbkrtest' (a dependency of 'car') depend on R (>= 4.2.0)
# - {os: ubuntu-latest, r: 'oldrel-3'}
# - {os: ubuntu-latest, r: 'oldrel-4'}
# - {os: ubuntu-latest, r: 'oldrel-5'}

env:
R_KEEP_PKG_SOURCE: yes
Expand All @@ -51,7 +45,7 @@ jobs:

- uses: r-lib/actions/setup-pandoc@v2

- name: "[Custom block] [macOS] Install spatial libraries"
- name: "[Custom block] [MacOS] Install spatial libraries"
if: runner.os == 'macOS'
run: brew install udunits gdal proj geos

Expand Down Expand Up @@ -80,11 +74,11 @@ jobs:
remotes::install_cran("rcmdcheck")
shell: Rscript {0}

- name: "[Custom block] [macOS] Install units from source"
- name: "[Custom block] [MacOS] Install units from source"
if: runner.os == 'macOS'
run: |
install.packages('udunits2', type = 'source', configure.args = '--with-udunits2-include=/usr/include/udunits2')
install.packages('units', type = 'source', configure.args = '--with-udunits2-include=/usr/include/udunits2')
install.packages('udunits2', type = 'source', configure.args = '--with-udunits2-lib=/usr/local/udunits2')
install.packages('units', type = 'source', configure.args = '--with-udunits2-lib=/usr/local/udunits2')
shell: Rscript {0}

- name: Session info
Expand Down

0 comments on commit bc64e30

Please sign in to comment.