get_archive_data {qtkit} | R Documentation |
Download an archive file and unarchive its contents
Description
Possible file types include .zip, .gz, .tar, and .tgz
Usage
get_archive_data(url, target_dir, force = FALSE, confirmed = FALSE)
Arguments
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 |
Value
NULL, the archive file is unarchived in the target directory
Examples
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
)
[Package qtkit version 0.10.0 Index]