Skip to content

Commit

Permalink
add macos system dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
annakrystalli committed Jun 27, 2020
1 parent ef53a44 commit 950de21
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,25 @@ 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
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
config_args <- c("sf" = "--with-proj-lib=/usr/local/lib/", "rgdal" = "--with-proj-lib=/usr/local/lib/ --with-proj-include=/usr/local/include/")
r <- getOption("repos")
r["CRAN"] <- "https://cran.rstudio.com"
options(configure.args = config_args, repos = r)
EOT
- name: Query dependencies
run: |
install.packages('remotes')
Expand Down

0 comments on commit 950de21

Please sign in to comment.