download_document: GET a document from ECOS.

Description Usage Arguments Details Value See Also Examples

Description

Simple function to download a file from ECOS

Usage

1

Arguments

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

Details

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.

Value

A data_frame with destination and success information

See Also

download_pdf

Examples

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)

jacob-ogre/ecosscraper documentation built on May 18, 2019, 8 a.m.