View source: R/get_archive_data.R
get_archive_data | R Documentation |
Possible file types include .zip, .gz, .tar, and .tgz
get_archive_data(url, target_dir, force = FALSE, confirmed = FALSE)
url |
A character vector representing the full url to the compressed file |
target_dir |
The directory where the archive file should be downloaded |
force |
An optional argument which forcefully overwrites existing data |
confirmed |
If |
NULL, the archive file is unarchived in the target directory
## Not run:
data_dir <- file.path(tempdir(), "data")
url <-
"https://raw.githubusercontent.com/qtalr/qtkit/main/inst/extdata/test_data.zip"
get_archive_data(
url = url,
target_dir = data_dir,
confirmed = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.