add_pkg_to_bib: Add package to BibTeX file

View source: R/add_pkg_to_bib.R

add_pkg_to_bibR 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")


qtkit documentation built on Sept. 11, 2024, 5:14 p.m.