View source: R/get_compressed_data.R
get_compressed_data | R Documentation |
Possible 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 = "./") ## Not run: get_compressed_data(url = "http://www.test.com/file.zip", target_dir = "./") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.