[R-pkg-devel] robust download function in R (similar to wget)?

Joshua Ulrich josh.m.ulrich at gmail.com
Thu Aug 25 15:24:30 CEST 2016


Try downloader: https://cran.r-project.org/package=downloader

On Thu, Aug 25, 2016 at 7:47 AM, Lucas Ferreira Mation
<lucasmation at gmail.com> wrote:
> I am creating this package <https://github.com/lucasmation/microdadosBrasil>
> that has to download data from some sources that are a bit
> unstable/unreliable. The problem is described in this issue
> <https://github.com/lucasmation/microdadosBrasil/issues/56>.
>
> Is there a more "robust" download fucntion in R?
> Something similar to wget, that would:
>
> - where there are errors, repeat the download a few times before giving up,
> preferably, using partial data on a file being downloaded from previous
> attempts
> - check the integrity of the downloaded file
>
> As this has to be embedded in an R package, the solution needs to be OS
> independent and require no installation of external software by the user.
>
> regards
> Lucas
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-package-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel



-- 
Joshua Ulrich  |  about.me/joshuaulrich
FOSS Trading  |  www.fosstrading.com
R/Finance 2016 | www.rinfinance.com



More information about the R-package-devel mailing list