oswaldosantos / ggsn

R package to add north symbols and scale bars to maps created with ggplot or ggmap
http://oswaldosantos.github.io/ggsn/
GNU General Public License v2.0
161 stars 9 forks source link

'maptools' dependency is now retired #61

Open nmarchio opened 8 months ago

nmarchio commented 8 months ago

ggsn is not available for R version 4.3.2 (2023-10-31) because maptools is no longer updated and is now retired.

Here is the notice on the maptools page https://maptools.r-forge.r-project.org/:

Please note that 'maptools' will be retired during 2023, plan transition at your earliest convenience; some functionality will be moved to 'sp'. Set of tools for manipulating geographic data. It includes binary access to 'GSHHG' shoreline files. The package also provides interface wrappers for exchanging spatial objects with packages such as 'PBSmapping', 'spatstat.geom', 'maps', and others.

I believe gcDestination is the only function from maptools used in ggsn: https://maptools.r-forge.r-project.org/reference/gcDestination.html

nmarchio commented 8 months ago

I just forked the repo and removed the maptools dependency in case anyone needs a workaround:

devtools::install_github('mansueto-institute/ggsn')

AdamCSmithCWS commented 6 months ago

Thanks @nmarchio . I just installed from your fork, and I'm really grateful to have this workaround.