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.:

any help is appreciated.


checking for gdal-config… 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.