Download all PDF status review documents from NMFS
download_status_reviews(subd = "")
The directory (subdirectory) to which the PDFs are downloaded
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.
Two points to note:
download_pdf checks for duplicate files by name and skips the download by default if the file exists;
By extension, download_pdf does not check for duplicate files based on, e.g., MD5 hashes. Yet.
1 2 3 4
## Not run: dl_res <- download_status_reviews("~/Downloads/NMFS_rec") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.