Download and unpack raster templates
Source:R/download_raster_templates.R
download_raster_templates.Rd
Downloads a ZIP from Zenodo (or a user URL), unpacks it into a destination directory, and removes the archive after a successful extraction. Writes to a tempfile first and then moves to final destination for atomicity.
Usage
download_raster_templates(
url = "https://zenodo.org/api/records/14497070/files-archive",
out_dir = "./Templates/TemplateRasters",
overwrite = FALSE,
quiet = FALSE
)
Arguments
- url
Character. Archive URL to download. Default: Zenodo (EGV raster templates) v2.0.0: "https://zenodo.org/api/records/14497070/files-archive".
- out_dir
Character. Destination directory for the unzipped rasters. Default: "./Templates/TemplateRasters".
- overwrite
Logical. Re-download and overwrite existing files/dirs? Default: FALSE.
- quiet
Logical. Suppress progress messages. Default: FALSE.