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

View source: R/spoafulltext.r

spoafulltextR Documentation

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

Description

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

Usage

  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

## 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 18, 2022, 7:32 p.m.