View source: R/persistentDownload.R
persistentDownload | R Documentation |
If download failed, it will be repeated until max attempt reached.
persistentDownload(
file.url,
output.name,
max.attempt = 5,
user.invoke = TRUE,
header
)
file.url |
File uniform resource locator. |
output.name |
Output name. |
max.attempt |
Maximum number of attempt. Default is 5. |
user.invoke |
If number of attempt is reached, ask user whether to keep trying. Default is TRUE to invoke the prompt. |
header |
A named list or vector of curl header. |
A downloaded file.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.