"use"(pkg="R.utils", version=NULL, how=c("attach", "load"), quietly=TRUE, warn.conflicts=!quietly, install=TRUE, repos=getOption("use/repos", c("[[current]]", "[[mainstream]]")), ..., verbose=FALSE)
character
string specifying whether the package should be attached or loaded.TRUE
, minimal or no messages are reported.TRUE
, warnings on namespace conflicts are reported, otherwise not.TRUE
and the package is not installed or an too old version is installed, then tries to install a newer version, otherwise not.require
() or requireNamespace
().TRUE
, verbose output is generated (regardless
of quietly
).vector
of package_version
() for each package
attached/loaded.
If one of the requested packages/package versions is not available
and could not be installed, an error is thrown.
library
() and "base::install.packages".
To modify the set of known repositories, set option repos
(see options
()),
which can also be done via setRepositories
.