From a vector of DOI, creates a BiBTeX expression with only DOI as metadata. No additional metadata (authors, title, etc.) are added. The type of document is set to article and a fictitious BiBTeX identifier is created.

The resulting .bib file can be imported in a reference management software (Mendeley, Zotero, etc.) to retrieve complete metadata/full text.

doi_to_bib(dois, filename)

Arguments

dois

a character vector. A vector of DOI.

filename

a character of length 1. The name of the .bib file (with file extension) to create.

Value

BiBTeX entries with DOI.

Examples

## Temporary file ----
file_name <- tempfile()

dois <- c("10.1080/03650340.2012.706871", 
          "10.1111/j.1744-7348.1970.tb05510.x")
          
bib_entries <- doi_to_bib(dois, file_name)
cat(bib_entries)
#> @article{ID20230302085250,
#>   doi={10.1080/03650340.2012.706871}
#> }
#> 
#> @article{ID20230302085251,
#>   doi={10.1111/j.1744-7348.1970.tb05510.x}
#> }
#>