Learn R Programming

GetDFPData (version 1.5.3)

gdfpd.download.file: Downalods files from the internet

Description

Downalods files from the internet

Usage

gdfpd.download.file(dl.link, dest.file, max.dl.tries)

Arguments

dl.link

Link to file

dest.file

= Destination, as local file

max.dl.tries

Maximum number of attempts for dowloading files

Value

Nothing

Examples

Run this code
# NOT RUN {
my.url <- paste0('http://www.rad.cvm.gov.br/enetconsulta/',
                  'frmDownloadDocumento.aspx?CodigoInstituicao=2',
                  '&NumeroSequencialDocumento=46133')

# }
# NOT RUN {
 # keep CHECK fast
dl.status <- gdfpd.download.file(my.url, 'tempfile.zip', 10)
# }

Run the code above in your browser using DataLab