Learn R Programming

journalabbr (version 0.4.3)

write_dt2bib: 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"))

Value

file as a character string, invisibly.

Arguments

dt

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

file

character, file path to write the .bib file.

Examples

Run this code
# 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"))

Run the code above in your browser using DataLab