Usage
LoadandCite(pkgs = NULL, versions = NULL, Rversion = NULL,
bibtex = TRUE, style = "plain", tweak = TRUE, install = FALSE,
file = NULL, repos = NULL, lib = NULL)
Arguments
pkgs
a character vector of R package names. If
pkgs = NULL then LoadandCite only cites the
non-base packages in the current session. It does not
load or install any packages.
versions
character vector of package version
numbers to install. Only works if install = TRUE.
The order must match the order of package names in
pkgs.
Rversion
a character string specifying a
particular R version. If the version of R currently
running differs from Rversion LoadandCite a
warning will be given. This argument is for replication
purposes.
bibtex
logical. If TRUE than a BibTeX
formatted citation file is created. If FALSE than
the citations are returned as plain text.
style
character string indicating stylistic
elements to add to the citations. Currently supports
'plain', i.e. no special formatting and
'JSS' to match the BibTeX style for the
Journal of Statistical Software (see
tweak
logical. Whether to fix some known problems
in the citations, especially non-standard format of
authors.
install
a logical option for whether or not to
install the packages. The default is install =
FALSE.
file
the name of the BibTeX file you want to
create. If file = NULL then the packages are
loaded, but no BibTeX file is created.
repos
character vector specifying which repository
to download packages from. Only relevant if install
= TRUE and versions are not specified. If repos =
NULL, automatically reads user defined repository (via
options
lib
character vector giving the library
directories where to install the packages. Recycled as
needed. If NULL, defaults to the first element of
.libPaths(). Only relevant if install =
TRUE.