write_dt2bib: Export a BibTeX 'data.table' to a .bib file.

View source: R/write_dt2bib.R

write_dt2bibR Documentation

Export a BibTeX data.table to a .bib file.

Description

The BibTeX data.table is written to a .bib file.

Usage

write_dt2bib(dt, file = tempfile(fileext = ".bib"))

Arguments

dt

data.table, in the format as returned by read_bib2dt.

file

character, file path to write the .bib file.

Value

file as a character string, invisibly.

Examples

# Read from .bib file:
require(journalabbr)
file <- system.file("extdata", "testfile_2.bib", package = "journalabbr", mustWork = TRUE)
bib <- read_bib2dt(file)

# Write to .bib file:
write_dt2bib(bib, file = tempfile(fileext = ".bib"))


journalabbr documentation built on Aug. 9, 2022, 5:05 p.m.