Description Usage Arguments Value Examples
View source: R/download-file.R
Download file if does not exist yet.
1 2 3 4 5 6 7 8 | download_file(
url,
dir = tempdir(),
fname = url_basename(url),
overwrite = FALSE,
mode = "wb",
...
)
|
url |
URL of file to be downloaded. |
dir |
Directory where to download the file. |
fname |
Base name of the downloaded file ( |
overwrite |
Whether to overwrite? Default is |
mode |
See parameter of |
... |
Arguments passed on to
|
Path to the downloaded (or existing) file.
1 2 3 | download_file("https://github.com/privefl.png")
download_file("https://github.com/privefl.png")
download_file("https://github.com/privefl.png", overwrite = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.