Load Libraries, Write Bibliography, and Return Version Table
load_libraries.Rd
This function loads a list of R packages, writes their citations to a BibTeX file, and returns a data frame of package versions.
Details
Loads each package in
library_list
usinglibrary()
.Writes BibTeX citations for each package (and base R) to
bibliography.bib
in the working directory.Returns a data frame with package names and versions, including base R.
Examples
load_libraries(c("stats", "utils"))
#> Package Version
#> 1 R R version 4.5.1 (2025-06-13) [@base]
#> 2 stats 4.5.1 [@stats]
#> 3 utils 4.5.1 [@utils]