a 'bibentry' object, list of bibentry
objects, or a character vector of package names
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.
verbose
a logical to toggle verbosity. If
'file=NULL', verbosity is forced off.
create_key
logical indicating whether function
should create a bibtex citation key if the object doesn't
have one.
Value
a list of citation information, invisibly
The 'knitcitations' package automatically extends the use
of this function to be able to write bibtex files from a
string of DOIs, making it valuable for purposes beyond
the citation of packages.