Download a Compressed File and Decompress its Contents
Source:R/get_compressed_data.R
get_compressed_data.RdPossible 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 compressed 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 toTRUEis useful for reproducible workflows.