View source: R/get_citations.R
get_citations | R Documentation |
Get citations for packages
get_citations(
pkgs = NULL,
out.dir = NULL,
bib.file = "grateful-refs",
include.RStudio = FALSE
)
pkgs |
Character vector of package names, e.g. obtained by |
out.dir |
Directory to save the output document and a BibTeX file with
the references. It is recommended to set |
bib.file |
Desired name for the BibTeX file containing packages references ("grateful-refs" by default). |
include.RStudio |
Logical. If |
A file on the specified out.dir
containing the package references
in BibTeX format. If assigned a name, get_citations
will also return a list
with citation keys for each package (without @).
citekeys <- get_citations(c("knitr", "renv"), out.dir = tempdir())
pkgs <- scan_packages()
citekeys <- get_citations(pkgs$pkg, out.dir = tempdir())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.