library("tima")
git <- "https://github.com/"
org <- "taxonomicallyinformedannotation"
repo <- "tima-example-files"
branch <- "main"
file <- "example_metadata.tsv"
get_file(
url = paste(git, org, repo, "raw", branch, file, sep = "/"),
export = "data/source/example_metadata.tsv"
)Get file
Description
This function downloads files from a URL with retry logic and exponential backoff.
Usage
get_file(url, export, limit = 3600L)
Arguments
url
|
Character string URL of the file to be downloaded |
export
|
Character string file path where the file should be saved |
limit
|
Integer timeout limit in seconds (default: 3600) |
Value
The path to the downloaded file