get_archive_data {qtkit} | 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
test_dir <- file.path(tempdir(), "test")
url <- "https://raw.githubusercontent.com/qtalr/qtkit/main/inst/extdata/test_data.zip"
get_archive_data(
url = url,
target_dir = test_dir,
confirmed = TRUE
)