Skip to contents

This function adds a package to a BibTeX file. It uses the knitr::write_bib function to write the package name to the file.

Usage

add_pkg_to_bib(pkg_name, bib_file = "packages.bib")

Arguments

pkg_name

The name of the package to add to the BibTeX file.

bib_file

The name of the BibTeX file to write to.

Examples

if (FALSE) {
add_pkg_to_bib("dplyr", "my_bib_file.bib")
}