Learn R Programming

knitcitations (version 0.6-2)

ref: Lookup article info via CrossRef with DOI.

Description

Lookup article info via CrossRef with DOI.

Usage

ref(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.

Examples

Run this code
ref("10.3998/3336451.0009.101")
print(ref("10.3998/3336451.0009.101"), style="Bibtex")
print(ref("10.3998/3336451.0009.101"), style="text")

Run the code above in your browser using DataLab