Closed
Description
A year ago, R-spatial announced rgdal, rgeos, and maptools will retire by the end of 2023.
https://r-spatial.org//r/2022/04/12/evolution.html
ggplot2 doesn't use rgdal, and just removed rgeos in #5242. However, maptools is still used in fortify.SpatialPolygonsDataFrame()
(and the examples section of the document).
Line 35 in 1d1f795
We need to decide how to deal with this. I think we have several options:
- Replace
maptools::unionSpatialPolygons()
with sf functions (convert to an sf object, transform it and convert back to an sp object) - Remove the functionality related to
maptools::unionSpatialPolygons()
- Drop
fortify()
methods for sp objects altogether