View source: R/add_pkg_to_bib.R
add_pkg_to_bib | R Documentation |
This function adds a package to a BibTeX file. It uses the
knitr::write_bib
function to write the package name to the file.
add_pkg_to_bib(pkg_name, bib_file = "packages.bib")
pkg_name |
The name of the package to add to the BibTeX file. |
bib_file |
The name of the BibTeX file to write to. |
my_bib_file <- tempfile(fileext = ".bib")
add_pkg_to_bib("dplyr", my_bib_file)
readLines(my_bib_file) |> cat(sep = "\n")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.