library("tima")
get_file(
url = "https://example.com/data.tsv",
export = "data/source/data.tsv"
)Download file from URL
Description
Downloads a file from a URL with robust error handling, retry logic, and validation. Automatically creates necessary directories and validates downloaded content. Skips download if file already exists.
Usage
get_file(url, export, limit = 3600L)
Arguments
url
|
Character string URL of the file to download |
export
|
Character string file path where the file should be saved |
limit
|
Integer timeout limit in seconds (default: 3600 = 1 hour) |
Value
Path to the downloaded file (invisibly)