diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index 8ff5921..a94d97f 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -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 <> .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 <> .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')