tar_download_run | R Documentation |
Not a user-side function. Do not invoke directly.
tar_download_run(urls, paths, method, quiet, mode, cacheOK, extra, headers)
urls |
Character vector of URLs to track and download. Must be known and declared before the pipeline runs. |
paths |
Character vector of local file paths to download each of the URLs. Must be known and declared before the pipeline runs. |
method |
Method to be used for downloading files. Current
download methods are The method can also be set through the option
|
quiet |
If |
mode |
character. The mode with which to write the file. Useful
values are |
cacheOK |
logical. Is a server-side cached value acceptable? |
extra |
character vector of additional command-line arguments for
the |
headers |
named character vector of additional HTTP headers to
use in HTTP[S] requests. It is ignored for non-HTTP[S] URLs. The
|
A character vector of file paths where the URLs were downloaded.
if (identical(Sys.getenv("TAR_LONG_EXAMPLES"), "true")) {
tarchetypes::tar_download_run(
urls = "https://httpbin.org/etag/test",
paths = tempfile(),
method = NULL,
quiet = TRUE,
mode = "w",
cacheOK = NULL,
extra = NULL,
headers = NULL
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.