Learn R Programming

TrustVDJ (version 0.1.0)

Download: 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. Default TRUE

Value

if success, return TRUE

Examples

Run this code
# NOT RUN {
URLs = paste0('http://www.imgt.org//download/', c('V-QUEST/IMGT_V-QUEST_reference_directory',
         'GENE-DB/IMGTGENEDB-ReferenceSequences.fasta-nt-WithGaps-F+ORF+inframeP'))
# }
# NOT RUN {
Download(URLs, c('vdj_species.html', 'IMGT_download.fa'))
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab