ocean-tracking-network / glatos

9 stars 4 forks source link

Loss of gdalUtils breaks installation for R 4.2.0 #174

Closed jdpye closed 2 years ago

jdpye commented 2 years ago

As reported by Jeff Quinn.

I recently upgraded to R4.2.0. This turns out to have been a big mistake for me. I had uninstall everything (old r versions, rstudio) and then reinstall new versions. I think it wiped out all my packages, so I've been rebuilding them. The following packages seem unavailable: rtools, VTrack, gdalutils. I've had issues with GDAL too, but I think I might try re-downloading it from the QGIS webpage. My big problem is that I can't get GLATOS to load from the OTN github. I'm guessing because gdalutils is no longer available. It says it cannot remove prior installation of cli and dyplyr.

Checked against Mac OSX Big Sur and 4.2.0, sure enough lack of gdalUtils is the culprit. the CRAN page seems to convey that gdalUtils isn't on CRAN anymore due to them not handling a bugfix fast enough?

The task before us seems to be to remove our gdalUtils dependencies or advertise that we're not installable on R 4.2.0.

jdpye commented 2 years ago

after a bit of investigation, Josh O Brien's gdalUtilities package may provide a direct alternative the gdal_rasterize function that is used in the one function we have that depends on gdalUtils currently.

https://github.com/ocean-tracking-network/glatos/blob/2689d271050a74b8177342bb8c24108ca2c99c53/R/vis-make_transition.r#L191

This or we move fully into the world of sf, which I imagine has the longer and more concrete support lifecycle.