get_compressed_data: Download a Compressed File and Decompress its Contents

View source: R/get_compressed_data.R

get_compressed_dataR Documentation

Download a Compressed File and Decompress its Contents

Description

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 = "./")
## Not run: 
get_compressed_data(url = "http://www.test.com/file.zip", target_dir = "./")

## End(Not run)

francojc/tadr documentation built on April 26, 2022, 7:55 p.m.