View source: R/get_pkgs_info.R
get_pkgs_info | R Documentation |
This function scans the project for R packages used, saves a BibTeX file with package references, and returns a data frame with package names, version, and citation keys.
get_pkgs_info(
pkgs = "All",
out.dir = NULL,
omit = c("grateful"),
cite.tidyverse = TRUE,
dependencies = FALSE,
bib.file = "grateful-refs",
include.RStudio = FALSE,
...
)
pkgs |
Character. Either "All" to include all packages used in scripts
within the project/folder (the default), or "Session" to include only packages
used in the current session.
Alternatively, |
out.dir |
Directory to save the BibTeX file with references.
It is recommended to set |
omit |
Character vector of package names to be omitted from the citation
report. |
cite.tidyverse |
Logical. If |
dependencies |
Logical. Include the dependencies of your used packages?
If |
bib.file |
Desired name for the BibTeX file containing packages references ("grateful-refs" by default). |
include.RStudio |
Logical. If |
... |
Other parameters passed to |
A data.frame with package info, and a file containing package references in BibTeX format.
get_pkgs_info(out.dir = tempdir())
get_pkgs_info(pkgs = c("renv", "remotes"), out.dir = tempdir())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.