Download an archive file and unarchive its contents
Source:R/get_archive_data.R
get_archive_data.Rd
Possible file types include .zip, .gz, .tar, and .tgz
Arguments
- url
A character vector representing the full url to the compressed file
- target_dir
The directory where the archive file should be downloaded
- force
An optional argument which forcefully overwrites existing data
- confirmed
If
TRUE
, the user has confirmed that they have permission to use the data. IfFALSE
, the function will prompt the user to confirm permission. Setting this toTRUE
is useful for reproducible workflows.