GetBibEntryWithDOI: Lookup a Bibtex entry using a Digital Object Identifier

Description Usage Arguments Details Value References See Also Examples

View source: R/GetBibEntryWithDOI.R

Description

Uses the DOI System API to look up bibliography information given a set of DOIs.

Usage

1
2
GetBibEntryWithDOI(doi, temp.file = tempfile(fileext = ".bib"),
  delete.file = TRUE)

Arguments

doi

character vector; DOIs to use to retrieve bibliographic information.

temp.file

string; a file to write the Bibtex data returned by the DOI System to.

delete.file

logical; should temp.file be deleted when the function exits?

Details

The bibliographic information returned by the search of the https://doi.org API is temporarily written to a file and then read back into R and return as a BibEntry object.

Value

an object of class BibEntry.

References

https://www.doi.org/tools.html

See Also

ReadCrossRef, BibEntry

Examples

1
2
if (interactive() && !httr::http_error("https://doi.org/"))
  GetBibEntryWithDOI(c("10.1016/j.iheduc.2003.11.004", "10.3998/3336451.0004.203"))

RefManageR documentation built on April 26, 2018, 1:05 a.m.