Lookup article info via CrossRef with DOI and get a citation.

Usage

crossref_citation(doi, title = FALSE, url = "http://www.crossref.org/openurl/", 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)
url
the PLoS API url for the function (should be left to default)
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.

Description

Options to get formatted citations as bibtext or plain text.

Details

See http://labs.crossref.org/openurl/ for more info on this Crossref API service.

Examples

crossref_citation(doi="10.1371/journal.pone.0042793")
Calvo R, Zheng Y, Kumar S, Olgiati A, Berkman L and Mock N (2012). “Well-Being and Social Capital on Planet Earth: Cross-National Evidence from 142 Countries.” _PLoS ONE_, *7*. .
print(crossref_citation("10.3998/3336451.0009.101"), style="Bibtex")
@Article{, title = {In Google We Trust?}, author = {Geoffrey Bilder}, journal = {The Journal of Electronic Publishing}, year = {2006}, month = {01}, volume = {9}, doi = {10.3998/3336451.0009.101}, }
print(crossref_citation("10.3998/3336451.0009.101"), style="text")
Bilder G (2006). “In Google We Trust?” _The Journal of Electronic Publishing_, *9*. .