Skip to content
Prev 28466 / 29559 Next

Reporting an issue with rgdal in macOS BigSur

For completeness, I've put up a skeleton package on 
https://github.com/rsbivand/checkGDALDrivers, with Github Actions to check 
the package on macOS-latest as well as ubuntu-20.04 (latest and devel) and 
Windows-latest. The MacOS platform opens a GTiff file, but does not open a 
JP2 file (using rgdal::GDAL.open()):

https://github.com/rsbivand/checkGDALDrivers/runs/1467699832

I've replicated this on R-hub for MacOS using CRAN and brew (the GDAL from 
brew in that workflow also misses openjpeg it seems):

CRAN: 
https://artifacts.r-hub.io/checkGDALDrivers_0.0-1.tar.gz-64d505798f4b251d1c801ea5dbe6aa33/
brew
https://artifacts.r-hub.io/checkGDALDrivers_0.0-1.tar.gz-5dfcf72469d1effc742710d53d167caf/

On Winbuilder the GA results are replicated (success with both GTiff and 
JP2 on all platforms - there is no guarantee that Debian or Fedora 
packaged GDAL will include this or any other optional driver).

The skeleton package might easily be forked, and could also simply check 
the driver listings rather than actually trying to read a GTiff and a JP2 
file (PRs very welcome).

So we have now a two-threaded way to check for JP2 absence, using this 
package's GA, and through R-hub.

Next step to work out how to get openjpeg into the recipes listings so 
that GDAL there is built using it.
On Sat, 28 Nov 2020, Gilberto Camara wrote:

            
Sorry, should have been:

rgdal::rgdal_extSoftVersion()

Best wishes,

Roger