gdfpd.download.file: Downalods files from the internet

Description Usage Arguments Value Examples

View source: R/gdfpd_utils.R

Description

Downalods files from the internet

Usage

1
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

1
2
3
4
5
6
7
8
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)

## End(Not run)

GetDFPData documentation built on July 28, 2018, 1:04 a.m.