download_status_reviews: Download all PDF status review documents from NMFS

Description Usage Arguments Details Note Examples

View source: R/get_status_reviews.R

Description

Download all PDF status review documents from NMFS

Usage

1

Arguments

subd

The directory (subdirectory) to which the PDFs are downloaded

Details

Uses get_status_review_pdf_urls to fetch the vector of PDF URLs for status reviews 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.

Note

Two points to note:

  1. download_pdf checks for duplicate files by name and skips the download by default if the file exists;

  2. By extension, download_pdf does not check for duplicate files based on, e.g., MD5 hashes. Yet.

Examples

1
2
3
4
## Not run: 
  dl_res <- download_status_reviews("~/Downloads/NMFS_rec")

## End(Not run)

jacob-ogre/nmfsscraper documentation built on May 17, 2017, 6:43 a.m.