write.bib {bibtex} | R Documentation |
Generate a Bibtex File from Package Citations
Description
Generates a Bibtex file from a list of packages or all the installed packages. It is useful for adding relevant citations in Sweave documents.
Usage
write.bib(entry, file = "Rpackages.bib", append = FALSE, verbose = TRUE)
Arguments
entry |
a |
file |
output Bibtex file. |
append |
logical. If |
verbose |
a logical to toggle verbosity. |
Value
the list of Bibtex objects – invisibly.
Author(s)
Renaud Gaujoux, based on the function Rpackages.bib
from Achim Zeileis (see References).
References
[R] Creating bibtex file of all installed packages? Achim Zeileis. R-help mailing list.
Examples
write.bib(c("bibtex", "utils", "tools"), file = "references")
bibs <- read.bib("references.bib")
write.bib(bibs, "references2.bib")
md5 <- tools::md5sum(c("references.bib", "references2.bib"))
md5[1] == md5[2]
[Package bibtex version 0.5.1 Index]