oscarperpinan / meteoForecast

A package to access outputs from Numerical Weather Prediction models both in raster format and as a time series for a location
GNU General Public License v3.0
51 stars 25 forks source link

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

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.

oscarperpinan commented 1 year ago

Hi.

This package suggests rgdal to use the spTransform method. According to the sp documentation, "Package rgdal provides the methods doing actual transformation; when rgdal cannot be loaded, an error message."

rsbivand commented 1 year ago

Please see both blogs. Until June 2023, the sp evolution status option/environment variable (must be set before loading) is default 0, but can be set to 2 to use sf rather than rgdal. Please raise an issue if you also need to set/reset it id sp is already loaded on https://github.com/r-spatial/evolution/issues.