R: Search CrossRef for Document Object Identifiers for Given...

GetDOIs {RefManageR} | R Documentation

## 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

### Note

Only entries in `bib` that do not already contain a value in the ‘doi’ field will be searched for.

### References

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

### See Also

`ReadCrossRef`

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

### Examples

    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
    }

[Package RefManageR version 1.2.0 Index]