download_species_page: Download a species' ECOS page

Description Usage Arguments Details Value Examples

Description

Download a species' ECOS page

Usage

1

Arguments

url

The URL of the HTML page to download

file

The file to which the HTML will be written

overwrite

Whether to overwrite pre-existing file

Details

A wrapper around GET with several checks to make downloads more likely / robust.

Value

A data_frame with four variables:

url

The URL that was downloaded or attempted

dest

The file to which the HTML was written

success

Whether the download was a success or failed

htmlCheck

Whether the downloaded file is an HTML [bool]

Examples

1
2
3
4
5
## Not run: 
  get_species_url("Helianthus paradoxus") %>% 
    download_species_page("~/Downloads/HELPAR_2016-12-08.html")

## End(Not run)

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