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

Lucas Ferreira Mation lucasmation at gmail.com
Thu Aug 25 14:47:42 CEST 2016


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]]



More information about the R-package-devel mailing list