This is a wrapper for
download.file and takes all the same
arguments. The only difference is that, if the protocol is https, it changes
some settings to make it work. How exactly the settings are changed differs
The URL to download.
Other arguments that are passed to
This function also should follow http redirects on all platforms, which is
something that does not happen by default when
curl is used, as on Mac
With Windows, it either uses the
"wininet" method (for R 3.2) or uses
"internal" method after first ensuring that
is active (which tells R to use the
On other platforms, it will try to use
curl, and then
lynx to download the file. R 3.2 will typically
libcurl method and for previous versions of R Linux platforms
wget installed, and Mac OS X will have
Note that for many (perhaps most) types of files, you will want to use
mode="wb" so that the file is downloaded in binary mode.
download.file for more information on the arguments
that can be used with this function.
1 2 3 4 5 6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.