ropensci / rnaturalearth

An R package to hold and facilitate interaction with natural earth map data :earth_africa:
http://ropensci.github.io/rnaturalearth/
Other
214 stars 24 forks source link

ne_countries message:maptools, rgdal, and rgeos, underpinning this package will retire shortly message #106

Closed Luigi-Annic closed 6 months ago

Luigi-Annic commented 6 months ago

I'm running the following line of code: ne_countries(scale = 50, continent = NULL, returnclass = "sf")

It works, but I get a message that says: "The legacy packages maptools, rgdal, and rgeos, underpinning this package will retire shortly. Please refer to R-spatial evolution reports on https://r-spatial.org/r/2023/05/15/evolution4.html for details. This package is now running under evolution status 0 ".

I do not fully get the consequences of this message. Does it mean that I will need to change something in my code in the near future? Is there anything I can do to tackle this?

Notably, this message does not appear if I change the scale value to 110.

PMassicotte commented 6 months ago

Try installing:

https://github.com/ropensci/rnaturalearthhires https://github.com/ropensci/rnaturalearthdata

From GitHub, it should fix it.

Luigi-Annic commented 6 months ago

Installing rnaturalearthdata version 1.0.0 from GitHub fixed it! Do you plan to update this package also in CRAN? I would like to include it in a package of mine (as one of the "suggests"), but when I run the checks a message says

"Package required and available but unsuitable version: 'rnaturalearthdata'"

This makes sense to me, as I see that in CRAN rnaturalearthdata is back to version 0.1.0. Thank you for your help!

PMassicotte commented 6 months ago

We plan to submit both data and hires very soon to CRAN!

Luigi-Annic commented 6 months ago

Thanks!