Packrat helps you maintain consistent package versions for a project. To be able to give due credit in a way that academics understand, it's helpful to be able to generate citations.

packrat_bibliography(overwrite_bib = FALSE, silent = FALSE,
  cite_only_directly_called = TRUE, lockfile_path = "packrat/packrat.lock",
  bibliography_path = "packrat_bibliography.bibtex",
  cite_packrat = !cite_only_directly_called)

Arguments

overwrite_bib

whether to overwrite an existing bibtex file of the same name

silent

defaults to false. whether to cat out a nocite string to use in your header

cite_only_directly_called

whether to call only the packages you called yourself (default) or also their dependencies

lockfile_path

path to the packrat lock file to use

bibliography_path

path to the bibtex file to generate

cite_packrat

whether to cite packrat even if it's not loaded explicitly, defaults to the reverse of cite_only_directly_called