spoafulltext: Get full text BioMedCentral (BMC) content from a given DOI.

Description Usage Arguments Value Examples

View source: R/spoafulltext.r

Description

Get full text BioMedCentral (BMC) content from a given DOI.

Usage

1
2
3
4
5
  spoafulltext(doi,
    section = list("abstract", "introduction", "methods", "results", "discussion", "conclusion", "all", "references"),
    url = "http://api.springer.com/openaccess/app",
    key = getOption("SpringerOAKey", stop("need an open access API key for Springer Journals")),
    ..., curl = getCurlHandle())

Arguments

doi

DOI of the article.

section

Section of the paper you want returned (see options in help).

url

the base Springer url for the function (should be left to default)

key

your Springer API key, either enter, or loads from .Rprofile

...

optional additional curl options (debugging tools mostly)

curl

If using in a loop, call getCurlHandle() first and pass the returned value in here (avoids unnecessary footprint)

Value

Full text of section of paper, or whole paper.

Examples

1
2
3
4
5
## Not run: 
spoafulltext(doi = '10.1186/1472-6785-11-29', section = 'abstract')
spoafulltext(doi = '10.1186/1472-6785-11-29', section = 'body')

## End(Not run)

ropensci/rspringer documentation built on May 27, 2019, 6:34 p.m.