ropensci / rnaturalearthhires

high resolution naturalearth data for rnaturalearth
https://docs.ropensci.org/rnaturalearthhires
23 stars 14 forks source link

Unexpected warning for sp objects #11

Closed olivroy closed 1 month ago

olivroy commented 11 months ago
rnaturalearth::ne_states("India")
#> The `returnclass` argument of `ne_download()` sp as of rnaturalearth 1.0.0.
#> ℹ Please use `sf` objects with {rnaturalearth}, support for Spatial objects (sp)
#> will be removed in a future release of the package.

I did not specify returnclass. Need to use returnclass = "sf" to silence the warning.

Should rnaturalearthhires return sf objects by default?

PMassicotte commented 11 months ago

It should/will return sf by default in the next release. I will push the change early next week.

PMassicotte commented 1 month ago

Closing since fixed in the latest release.