Rgdal fails on the latest builds of r packages: "error: gdal-config not found or not executable."

@jeroen and @jimheste
Looks like rgdal fails on new builds, e.g.:
https://travis-ci.org/bnasr/xROI

any help is appreciated.

log:

checking for gdal-config… no

no

configure: error: gdal-config not found or not executable.

ERROR: configuration failed for package ‘rgdal’

  • removing ‘/usr/local/lib/R/site-library/rgdal’

Error in i.p(…) :

(converted from warning) installation of package ‘rgdal’ had non-zero exit status

Calls: … with_rprofile_user -> with_envvar -> force -> force -> i.p

Execution halted

The command “Rscript -e ‘deps <- remotes::dev_package_deps(dependencies = NA);remotes::install_deps(dependencies = TRUE);if (!all(deps$package %in% installed.packages())) { message("missing: “, paste(setdiff(deps$package, installed.packages()), collapse=”, ")); q(status = 1, save = “no”)}’” failed and exited with 1 during .

Not sure why it was working before but this PR should fix it: https://github.com/bnasr/xROI/pull/3.

Awesome, thanks.

Imprint