add_pkg_to_bib {qtkit} | R Documentation |
Add package to BibTeX file
Description
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
my_bib_file <- tempfile(fileext = ".bib")
add_pkg_to_bib("dplyr", my_bib_file)
readLines(my_bib_file) |> cat(sep = "\n")
[Package qtkit version 1.0.0 Index]