df2bib {bib2df}R Documentation

Export a BibTeX tibble to a .bib file

Description

The BibTeX tibble is written to a .bib file

Usage

df2bib(x, file = "", append = FALSE)

Arguments

x

tibble, in the format as returned by bib2df.

file

character, file path to write the .bib file. An empty character string writes to stdout (default).

append

logical, if TRUE the tibble will be appended to an existing file.

Value

file as a character string, invisibly.

Author(s)

Thomas J. Leeper

References

http://www.bibtex.org/Format/

See Also

bib2df

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)

[Package bib2df version 1.1.1 Index]