HannaMeyer / CAST

Developer Version of the R package CAST: Caret Applications for Spatio-Temporal models
https://hannameyer.github.io/CAST/
108 stars 30 forks source link

Please remove dependencies on **rgdal**, **rgeos**, and/or **maptools** #48

Closed rsbivand closed 1 year ago

rsbivand commented 1 year ago

This package depends on (depends, imports or suggests) raster and one or more of the retiring packages rgdal, rgeos or maptools (https://r-spatial.org/r/2022/04/12/evolution.html, https://r-spatial.org/r/2022/12/14/evolution2.html). Since raster 3.6.3, all use of external FOSS library functionality has been transferred to terra, making the retiring packages very likely redundant. It would help greatly if you could remove dependencies on the retiring packages as soon as possible.

rsbivand commented 1 year ago

Thanks for progress so far; this was run with _SP_EVOLUTION_STATUS_=2 without retiring r-spatial packages (suggested in this package) on the library path: 00check.log. In both failing vignettes, rgeos::gBuffer is used in the local csample function. Either condition those chunks on the retiring packages being available, or replace with sf::st_buffer coercing to and from sf (and conditioning on sf being available.

rsbivand commented 1 year ago

Thanks!