write a bibtex file

Description

write a bibtex file

Usage

1
2
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

1
2
3
4
write.bibtex(c(citation("knitr"),
                citation("knitcitations"),
                citation("RCurl")))
 bib <- read.bibtex("knitcitations.bib")