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
  )
}
ropenscilabs/rnaturalearth documentation built on Feb. 18, 2024, 1:59 p.m.