bib2yml() uses pandoc to convert a .bib file to YAML. It also accepts an optional yml object to prepend to the the YAML from the .bib file. If you want to cite several R packages, see knitr::write_bib() to write a bibliography file and convert it with bib2yml().

bib2yml(.yml = NULL, path)



a yml object created by yml(), as_yml(), or returned by a yml_*() function


a path to the .bib file


a yml object

See also