# Create a temporary BibTeX file
my_bib_file <- tempfile(fileext = ".bib")
# Add citations for dplyr package
add_pkg_to_bib("dplyr", my_bib_file)
# View the contents of the BibTeX file
readLines(my_bib_file) |> cat(sep = "\n")
Run the code above in your browser using DataLab