The BibTeX tibble
is written to a .bib file
Arguments
- x
tibble
, in the format as returned bybib2df
.- file
character, file path to write the .bib file. An empty character string writes to
stdout
(default).- append
logical, if
TRUE
thetibble
will be appended to an existing file.
Examples
# Read from .bib file:
path <- system.file("extdata", "bib2df_testfile_3.bib", package = "bib2df")
bib <- bib2df(path)
# Write to .bib file:
# bibFile <- tempfile()
# df2bib(bib, bibFile)
# Use `append = TRUE` to add lines to an existing .bib file:
# df2bib(bib, bibFile, append = TRUE)