Learn R Programming

rplos (version 0.4.0)

crossref: Lookup article info via CrossRef with DOI.

Description

Lookup article info via CrossRef with DOI.

Usage

crossref(doi, title = FALSE, key = "cboettig@gmail.com", ..., curl = getCurlHandle())

Arguments

doi
digital object identifier for an article in PLoS Journals
title
return the title of the paper or not (defaults to FALSE)
key
your PLoS 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

Metadata from DOI in R's bibentry format.

Examples

Run this code
## Not run: 
# crossref(doi="10.1371/journal.pone.0042793")
# print(crossref("10.3998/3336451.0009.101"), style="Bibtex")
# print(crossref("10.3998/3336451.0009.101"), style="text")
# ## End(Not run)

Run the code above in your browser using DataLab