rnaturalearth 1.0.1

rnaturalearth 1.0.0

Breaking changes

This is a breaking changes release that ends support to sp object in favour of more modern interfaces (sf and terra). Although that sp is still available on CRAN, it is no longer being actively developed ( This is the main reason that motivated the choice to transition toward sf (the default) and terra.

Users can choose either get an sf or SpatVector using the returnclass argument:

ne_countries(returnclass = "sf")
ne_countries(returnclass = "sv")

Affected functions are ne_countries(), ne_coastline(), ne_states(), ne_load() and ne_download().

If changing the return type to sf creates too many problems to your existing code, you can still convert it back to sp :

countries <- ne_countries(returnclass = "sf")

# option 1

# option 2
as(countries, "Spatial")

More information about the retirement of rgdal, rgeos and maptools:


rnaturalearth 0.3.4

rnaturalearth 0.3.3

rnaturalearth 0.3.2

rnaturalearth 0.3.0 2021-10-11

rnaturalearth 0.2.0

rnaturalearth 0.1.0 CRAN

Try the rnaturalearth package in your browser

Any scripts or data that you put into this service are public.

rnaturalearth documentation built on May 29, 2024, 7:31 a.m.