bibtex_writer {handlr} | R Documentation |
bibtex writer
Description
bibtex writer
Usage
bibtex_writer(z, key = NULL)
Arguments
z |
an object of class |
key |
(character) optional bibtex key to use. if |
Value
an object of class BibEntry
See Also
Other writers:
cff_writer()
,
citeproc_writer()
,
codemeta_writer()
,
rdf_xml_writer()
,
ris_writer()
,
schema_org_writer()
Other bibtex:
bibtex_reader()
Examples
(z <- system.file('extdata/citeproc.json', package = "handlr"))
(tmp <- citeproc_reader(z))
bibtex_writer(z = tmp)
cat(bibtex_writer(z = tmp), sep = "\n")
# give a bibtex key
cat(bibtex_writer(tmp, "foobar89"), sep = "\n")
# many at once
if (requireNamespace("bibtex", quietly=TRUE)) {
(z <- system.file('extdata/bib-many.bib', package = "handlr"))
out <- bibtex_reader(x = z)
bibtex_writer(out)
}
[Package handlr version 0.3.0 Index]