This function downloads a spatial vector of world countries boundaries as
defined by the IPBES (available at https://zenodo.org/record/3928281).
A zip
file is downloaded in the folder path
(working directory 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 your wish
do not forget to use force = TRUE
to erase previous files.
Original Projection System: WGS84
get_world_basemap(path = ".", force = FALSE)
a character
of length 1. The folder inside which the zip
will be downloaded and extracted.
Default is getwd()
.
a logical
. If TRUE
previous files will be erased.
Default is FALSE
.
No return value.
if (FALSE) {
## Download and extract zip file ----
get_world_basemap()
## Check ----
list.files()
## Re-run function ----
get_world_basemap() # No download (zip file already present)
get_world_basemap(force = TRUE) # Erase previous files
}