Description Usage Arguments Details Value See Also Examples
Simple function to download a file from ECOS
1 | download_document(url, file, pause = TRUE)
|
url |
A URL from ECOS to download a document |
file |
File to which the document will be downloaded |
pause |
Whether to pause for 0.5-3 seconds during scraping |
This is a very thin wrapper for download_pdf. Keeping the function here just in case removal would break something else.
As with download_pdf, this function does an auto- rename to convert the URL to the file name, and places it in the destination directory, subd.
A data_frame with destination and success information
download_pdf
1 2 3 4 5 | ## Not run:
res <- download_document("http://ecos.fws.gov/docs/five_year_review/doc3847.pdf",
"~/Downloads/doc3847.pdf")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.