| write_bib {cffr} | R Documentation |
Creates a .bib file from a bibentry object(s)
write_bib(x, file = NULL, append = FALSE, verbose = TRUE, ascii = FALSE)
x |
A |
file |
Name of the file. If |
append |
Whether to append the entries to an existing file or not. |
verbose |
Display informative messages |
ascii |
Whether to write the entries using ASCII characters only or not. |
For security reasons, if the file already exists the function would create a backup copy on the same directory.
knitr::write_bib() and the following packages:
bibtex package.
RefManageR package.
Other bibtex:
cff_extract_to_bibtex(),
cff_to_bibtex(),
encoded_utf_to_latex()
bib <- bibentry("Misc",
title = "My title",
author = "Fran Pérez"
)
write_bib(bib)
write_bib(bib, ascii = TRUE)