write_bib {cffr}R Documentation

Create a .bib file

Description

Creates a .bib file from a bibentry object(s)

Usage

write_bib(x, file = NULL, append = FALSE, verbose = TRUE, ascii = FALSE)

Arguments

x

A bibentry object created with:

file

Name of the file. If NULL it would display the lines to be written.

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.

Details

For security reasons, if the file already exists the function would create a backup copy on the same directory.

See Also

knitr::write_bib() and the following packages:

Other bibtex: cff_extract_to_bibtex(), cff_to_bibtex(), encoded_utf_to_latex()

Examples


bib <- bibentry("Misc",
  title = "My title",
  author = "Fran Pérez"
)

write_bib(bib)

write_bib(bib, ascii = TRUE)

[Package cffr version 0.2.0 Index]