download.file(url, destfile, method="internal", quiet=TRUE, mode="w",
..., verbose=!quiet, download.args=list(...))
"internal" is supported.
TRUE, status messages are not printed.
destfile,
as with the
open argument to the
file function.
Common values are: "w" or "wt" to write a text file and "wb" to write a binary file.
name=value.
TRUE, status messages are printed.
userpwd="username:password" will send
the given username:password combination to the website.
proxy="proxyhost.com:8080" means to
use your proxy server at address hostname:portnumber and
proxyuserpwd="username:password" sends that
username:password combination to the proxy server.
postfields="who=bill&query=age" posts that
query string to the website. (You may also paste up a URL with
such strings at the end.)
destfile is created.
The function
download.file uses the CURL library.
The cURL web site: http://curl.haxx.se/.
# Get a copy of Google's home page, store in a tempfile
gtmp <- tempfile("google")
download.file("http://www.google.com", gtmp)
# Remove tempfile when finished:
unlink(gtmp)