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.- allfields
logical, if
TRUE
(default), the resulting bib output will include all the BibTeX fields contained in the df object. IfFALSE
only the fields with text will be included in the resulting bib object
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)