Checks if a character vector of R
packages are installed,
installs them if they are not currently installed,
and loads them in the namespace.
util_load_pkg( pkg, github = NULL, lib.loc = .libPaths()[1], repos = "https://cran.rstudio.org", dependencies = TRUE, type = "source", update = FALSE )
pkg | Character vector. Packages to install. |
---|---|
github | Character vector.
Packages from |
lib.loc | character vector describing the location of R
library trees to search through (and update packages therein), or
|
repos | character vector, the base URL(s) of the repositories
to use, e.g., the URL of a CRAN mirror such as
|
dependencies | logical indicating whether to also install
uninstalled packages which these packages depend on/link
to/import/suggest (and so on recursively).
Not used if Only supported if The default,
In all of these, |
type | character, indicating the type of package to download and
install. See |
update | Logical. Update installed packages. |
Ivan Jacob Agaloos Pesigan