Closed eliocamp closed 7 months ago
ne_download()'s returnclass argument is only relevant if load = TRUE and category != "raster", so throwing a warning in other cases might not be relevant. Maybe this
ne_download()
returnclass
load = TRUE
category != "raster"
https://github.com/ropensci/rnaturalearth/blob/704772792ecafb0f29b9f68089fdab80ccf4cb43/R/ne_download.R#L99-L101
could be something like this
warn <- returnclass == "sp" & load & category == "raster" if (warn) { deprecate_sp("ne_download(returnclass = 'sp')") }
Fixed, thank you
ne_download()
'sreturnclass
argument is only relevant ifload = TRUE
andcategory != "raster"
, so throwing a warning in other cases might not be relevant. Maybe thishttps://github.com/ropensci/rnaturalearth/blob/704772792ecafb0f29b9f68089fdab80ccf4cb43/R/ne_download.R#L99-L101
could be something like this