Create a bib file from a data.frame
write_bib(data, file = "", append = FALSE)
a data.frame
with references fields in columns and references
in rows.
a character
of length 1. The name of .bib
file to create.
a logical
. If TRUE
the data.frame
will be appended to
an existing file. Default is FALSE
.
No returned value.
## Import .bib file(s) ----
path_to_bibs <- system.file("extdata", package = "rbibtools")
refs <- rbibtools::read_bib(path = path_to_bibs)
## Export data.frame to .bib files ----
filename <- tempfile()
rbibtools::write_bib(refs, filename)