This function will generate a .bib file for an R package.

save_to_bib(package, file_name = NULL)

Arguments

package

A character vector of the package you want to cite.

file_name

A character vector for the file name of the output. Defaults to the package name.

Examples

# Create a .bib file called "test.bib" to cite the tidyverse # save_to_bib("tidyverse", "test")