Skip to contents

Possible file types include .zip, .gz, and .tar

Usage

get_compressed_data(url, target_dir, force = FALSE)

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

Value

Download and extract the compressed data file

Examples

get_compressed_data(url = "http://www.test.com/file.zip", target_dir = "./")
#> Data already exists 
if (FALSE) {
get_compressed_data(url = "http://www.test.com/file.zip", target_dir = "./")
}