R/downloading_tools.R
download_wbd.Rd
This function downloads and decompresses staged seamless WBD data. Please see: https://prd-tnm.s3.amazonaws.com/StagedProducts/Hydrography/WBD/National/GDB/WBD_National_GDB.xml for metadata.
download_wbd(
outdir,
url = paste0("https://prd-tnm.s3.amazonaws.com/StagedProducts/",
"Hydrography/WBD/National/GDB/WBD_National_GDB.zip"),
progress = TRUE
)
The folder path where data should be downloaded and extracted
the location of the online resource
boolean display download progress?
character path to the local geodatabase
if (FALSE) {
download_wbd("./data/wbd/")
}