This function downloads shapefile of world countries boundaries as defined by
IPBES (available at https://zenodo.org/record/3928281). Zip file is
downloaded in the folder path
('data/ipbes-regions' by default) and files
are extracted in the same folder. If this folder doesn't exist it will be
created.
Note: if you delete the ZIP file (after files extraction) and re-run this
function, the ZIP file will be downloaded again. It this is what you want do
forget to use force = TRUE
to erase previous files.
Original Projection System: WGS84
get_basemap(path = here::here("data", "ipbes-regions"), force = FALSE)
path | the folder to download and extract zip file |
---|---|
force | a logical value. If |
if (FALSE) { ## Download and extract ZIP ---- get_basemap() ## Check ---- list.files(here::here("data", "ipbes-regions")) ## Re-run function ---- get_basemap() # No download (ZIP already present) get_basemap(force = TRUE) # Erase previous files }