Skip to content

Commit

Permalink
Update R-CMD-check.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
obrl-soil committed Nov 22, 2020
1 parent 13fd982 commit 541ae60
Showing 1 changed file with 4 additions and 25 deletions.
29 changes: 4 additions & 25 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
pull_request:
branches:
- master
paths-ignore:
- 'docs/**'

name: R-CMD-check

Expand All @@ -29,6 +31,7 @@ jobs:

env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
DOWNLOAD_STATIC_LIBV8: 1
RSPM: ${{ matrix.config.rspm }}

steps:
Expand All @@ -40,29 +43,6 @@ jobs:

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

- name: Brew and macOS config
if: runner.os == 'macOS'
run: |
brew install pkg-config
brew install udunits
brew install gdal
brew install v8
cat <<EOT >> .Renviron
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/
PROJ_LIB=/usr/local/opt/proj/share/proj/
# for installing XML package from source
XML_CONFIG=/usr/local/opt/libxml2/bin/xml2-config
EOT
cat <<EOT >> .Rprofile
r <- getOption("repos")
r["CRAN"] <- "https://cran.rstudio.com"
r["rccp_drat"] <- "https://RcppCore.github.io/drat"
config_args <- c("sf" = "--with-proj-lib=/usr/local/lib/", "rgdal" = "--with-proj-lib=/usr/local/lib/ --with-proj-include=/usr/local/include/")
options(configure.args = config_args,
install.packages.compile.from.source = "yes",
repos = r)
EOT
- name: Query dependencies
run: |
install.packages('remotes')
Expand All @@ -82,8 +62,7 @@ jobs:
env:
RHUB_PLATFORM: linux-x86_64-ubuntu-gcc
run: |
# install spatial dependencies and v8 modern
sudo add-apt-repository ppa:cran/v8 --yes
# install spatial dependencies
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable --yes
sudo apt-get --yes --force-yes update -qq
sudo apt-get install -y libudunits2-dev libproj-dev libgeos++-dev libgdal-dev libnode-dev
Expand Down

0 comments on commit 541ae60

Please sign in to comment.