write.bibtex {knitcitations}R Documentation

write a bibtex file

Description

write a bibtex file

Usage

write.bibtex(entry = NULL, file = "knitcitations.bib", append = FALSE, ...)

Arguments

entry

a 'bibentry' object or list of bibentry objects. If NULL, writes all that have currently been cited.

file

output bibtex file. Will automatically append '.bib' if not added. if 'NULL' will use stdout.

append

a logical indicating that bibtex entries be added the the file. If FALSE (default), the file is overwritten.

...

additional arguments to WriteBib

Value

a list of citation information, invisibly

See Also

read.bib citep citet

Examples

 tmp <- tempfile(fileext=".bib")
 write.bibtex(c(citation("knitr"),
                citation("knitcitations"),
                citation("httr")),
               file = tmp)
 bib <- read.bibtex(tmp)

[Package knitcitations version 1.0.12 Index]