Create a bib file from a data.frame

write_bib(data, file = "", append = FALSE)

Arguments

data

a data.frame with references fields in columns and references in rows.

file

a character of length 1. The name of .bib file to create.

append

a logical. If TRUE the data.frame will be appended to an existing file. Default is FALSE.

Value

No returned value.

Examples

## 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)