Learn R Programming

RefManageR (version 1.2.0)

GetDOIs: Search CrossRef for Document Object Identifiers for Given Citations

Description

This function queries CrossRef to obtain DOIs for the entries in a given BibEntry object.

Usage

GetDOIs(bib)

Arguments

bib

a BibEntry object

Value

bib with any found DOI's added in the ‘doi’ field

References

https://search.crossref.org/help/api

See Also

ReadCrossRef

Other pubmed: GetPubMedByID, GetPubMedRelated, LookupPubMedID, ReadCrossRef, ReadPubMed

Examples

Run this code
# NOT RUN {
if (interactive() && !httr::http_error("https://search.crossref.org")){
  BibOptions(check.entries = FALSE, sorting = "none")
  bib <- ReadBib(system.file("Bib", "RJC.bib", package = "RefManageR"))[1:5]
  bib <- GetDOIs(bib)
  bib$doi
}
# }

Run the code above in your browser using DataLab