pmcOAI: Download Open Access articles from PMC

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/pmcOAI.R

Description

Download and save XML documents from the PMC OAI service

Usage

1
pmcOAI(id, local = TRUE, dir = "~/downloads/pmc", ...)

Arguments

id

PMC id

local

use local copy if available

dir

name of local directory to save file

...

other options passed to readLines

Details

XML documents in the Open Access (OA) subset are downloaded from the OAI service. The namespace is removed for easier XPath queries and carets (^) are added to superscript tags and hyperlinked footnotes for displaying text. The document is parsed using xmlParse in the XML package to generate the XML tree within the R session, so objects are stored as an XMLInternalDocument class and can be queried using XPath expressions. Finally, a local copy is saved using saveXML for reloading

Value

An XML internal document

Author(s)

Chris Stubben

References

http://www.ncbi.nlm.nih.gov/pmc/tools/openftlist

See Also

pmcOAI

Examples

1
2
3
4
## Not run: 
doc <- pmcOAI("PMC2231364")

## End(Not run)

cstubben/pmcXML documentation built on May 14, 2019, 12:25 p.m.