safe_download | R Documentation |
Safe Download
Downloads a file and tries hard to tidy up in the event of errors. Since these files are typically large we don't want to leave them in temp directories.
The destfile should only appear if the download was successful.
safe_download(url, destfile, fvalidate)
url |
src for the download |
destfile |
destination filename |
fvalidate |
a fn that is passed the filename after download to validate it in some way. The fn should return TRUE if the file is valid. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.