Description Usage Arguments Details Value Examples
Download all PDF documents from NMFS for a species
1 | download_species_pdfs(url, subd = "")
|
url |
The URL to query for PDF links |
subd |
The directory (subdirectory) to which the PDFs are downloaded |
Uses get_species_pdf_urls to fetch a vector of PDF URLs for species documents maintained by the National Marine Fisheries Service (NMFS). Filenames are the basename of the URL with spaces replaced by "_". Uses pdfdown, which returns a data.frame of results, to do the scraping.
An augmented data.frame from pdfdown with:
Document URL
Path to document
One of Success, Failed, Pre-exist
TRUE if a real PDF, else FALSE
The taxon represented, from the URL
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.