Download World drainage basins spatial layer
Source:R/get_drainage_basins_layer.R
get_drainage_basins_layer.Rd
Downloads the spatial layer of drainage basins of the World available on the Figshare website (https://figshare.com/collections/A_global_database_on_freshwater_fish_species_occurrences_in_drainage_basins/3739145).
Arguments
- path
a
character
of length 1. The path to the folder to save the spatial layer. Note that a subdirectorybasins/
will be created.- overwrite
a
logical
. IfTRUE
it will override the existing files. Default isFALSE
.- timeout
an
integer
. The timeout for downloading files. Default is60
. This number can be increased for slow Internet connection.- ...
other arguments to pass to
download.file()
(e.g.headers
).
References
Tedesco P et al. (2017) A global database on freshwater fish species occurrence in drainage basins. Scientific Data, 4, 170141. https://doi.org/10.1038/sdata.2017.141.