Last data update: 2014.03.03

R: Attempts to download a PDF using a DOI link.
PDF_downloadR Documentation

Attempts to download a PDF using a DOI link.

Description

Tries to download a PDF file using the digital objected identifier (DOI) link. Uses ad hoc searches of journal HTML pages to detect candidate PDFs for download. Downloads all candidate pdfs.

Usage

PDF_download(DOI, directory = getwd(), theFileName = "temp",
  validatePDF = TRUE, quiet = FALSE)

Arguments

DOI

A string of the DOI (digital object identifier) used to identify the source of a journal article PDF file(s).

directory

A string of the location (directory) were downloaded PDF files are to be saved. Directory name must end with "\".

theFileName

Used to rename the downloaded file. No need to include extension ".pdf".

validatePDF

When "TRUE" will only save to files that are valid PDF documents. When "FALSE" will save all candidate files, even if they are not valid PDF formats.

quiet

When "FALSE" does not print to console download progress and summary.

Value

A string describing the download success. If unsuccessful, returns the type of error during the download attempt.

See Also

PDFs_collect

Results