View source: R/download_file.R
download_file | R Documentation |
Download a file from the Internet and save to a cache directory.
download_file(url, cachedir = get_cache_dir(), ..., quiet = FALSE, mode = "wb")
url |
'character' string. URL of a resource to be downloaded. |
cachedir |
'character' string.
Path to the cache directory, see |
... |
Additioanl arguments to be passed to the |
quiet |
'logical' flag. Whether to supress status messages (if any), and the progress bar. |
mode |
'character' string. Mode with which to write the file. Useful values are "w", "wb" (binary), "a" (append) and "ab". |
Returns the path to the downloaded file, or extracted files when decompression occurs.
J.C. Fisher, U.S. Geological Survey, Idaho Water Science Center
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.