Download: Download files retryable

View source: R/download.r

DownloadR Documentation

Download files retryable

Description

Download files retryable

Usage

Download(
  URLs,
  names = NULL,
  method = NULL,
  sleep = NULL,
  outdir = NULL,
  verbose = TRUE
)

Arguments

URLs

character/list. URLs to be downloaded.

names

character/list. File names. Default seq(URLs)

method

character. Method to be used for downloading files, equal to download.file. Default 'libcurl'

sleep

numeric. Retry interval (second). Default 2

outdir

character. Output directory.

verbose

logical. Print progress. Default TRUE

Value

if success, return TRUE

Examples


Download('http://ftp.ensembl.org/pub', 'test.html')
file.remove('test.html')



HatsuneCode/TrustVDJ documentation built on Aug. 13, 2022, 9:36 p.m.