R/get_compressed_data.R
get_compressed_data.RdPossible file types include .zip, .gz, and .tar
get_compressed_data(url, target_dir, force = FALSE)
| 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 |
Download and extract the compressed data file
get_compressed_data(url = "http://www.test.com/file.zip", target_dir = "./")#> Data already exists# NOT RUN { get_compressed_data(url = "http://www.test.com/file.zip", target_dir = "./") # }