R/deprecate_sp.R

Defines functions deprecate_sp

deprecate_sp <- function(what, env = rlang::caller_env()) {
  lifecycle::deprecate_stop(
    when = "1.0.0",
    what = what,
    details = "Please use `sf` objects with {rnaturalearth}, Spatial objects (sp) are no longer supported. For example: `ne_download(returnclass = 'sf')`",
    env = env
  )
}

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.