Download Files over HTTP and HTTPS

Provides a wrapper for the download.file function, making it possible to download files over HTTPS on Windows, Mac OS X, and other Unix-like platforms. The 'RCurl' package provides this functionality (and much more) but can be difficult to install because it must be compiled with external dependencies. This package has no external dependencies, so it is much easier to install.


This package provides a wrapper for the download.file function, making it possible to download files over https on Windows, Mac OS X, and other Unix-like platforms. The RCurl package provides this functionality (and much more) but can be difficult to install because it must be compiled with external dependencies. This package has no external dependencies, so it is much easier to install.

Example usage

This will download the source code for the downloader package:

install.packages("downloader")
 
library(downloader)
download("https://github.com/wch/downloader/zipball/master",
         "downloader.zip", mode = "wb")

News

Version 0.4

  • Use new R 3.2 download methods ("wininet" and "libcurl") when available.

Version 0.3

  • source_url() function now checks the SHA-1 hash the downloaded file.

  • Add sha_url() function, for finding the SHA-1 hash of a remote file.

Version 0.2.2

  • Disable all network tests when running on CRAN, because the connection to the remote test website may not be reliable.

Version 0.2.1

  • Change https redirection test to not run on CRAN because their Windows build machine has more stringent security settings.

Version 0.2

  • Switched to using Sys.which to find external programs.

  • Added tests.

  • When using curl, follow redirects with http. (It already worked with https.)

  • Add source_url function.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("downloader")

0.4 by Winston Chang, 4 years ago


https://github.com/wch/downloader


Report a bug at https://github.com/wch/downloader/issues


Browse source code at https://github.com/cran/downloader


Authors: Winston Chang <[email protected]>


Documentation:   PDF Manual  


Task views: Web Technologies and Services


GPL-2 license


Imports utils, digest

Suggests testthat


Imported by CANSIM2R, DiagrammeR, RKEELjars, RSwissMaps, biomartr, bipartiteD3, blastula, etl, imager, mdsr, neonUtilities, radix, rtrek, sublime.

Suggested by drake, quantmod.


See at CRAN