Learn R Programming

kmeRtone (version 1.0)

persistentDownload: Download file until successful

Description

If download failed, it will be repeated until max attempt reached.

Usage

persistentDownload(
  file.url,
  output.name,
  max.attempt = 5,
  user.invoke = TRUE,
  header
)

Value

A downloaded file.

Arguments

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.