Description Usage Arguments Value Examples
View source: R/ghfd_download_file.R
This function will take as input a ftp addresss, the name of the downloaded file in the local drive, and it will download the corresponding file. Returns TRUE if it worked and FALSE otherwise.
1 | ghfd_download_file(my.ftp, out.file, dl.dir = "Dl Files", max.dl.tries = 10)
|
my.ftp |
A complete, including file name, ftp address to download the file from |
out.file |
Name of downloaded file with HFT data from Bovespa |
dl.dir |
The folder to download the zip files (default = 'ftp files') |
max.dl.tries |
Maximum attempts to download the files from ftp |
TRUE if sucessfull, FALSE if not
1 2 3 4 5 6 7 | my.ftp <- 'ftp://ftp.bmf.com.br/MarketData/Bovespa-Opcoes/NEG_OPCOES_20151229.zip'
out.file <- 'temp.zip'
## Not run:
ghfd_download_file(my.ftp = my.ftp, out.file=out.file)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.