Description Usage Arguments Author(s) Examples
View source: R/util_load_pkg.R
Checks if a character vector of R
packages are installed,
installs them if they are not currently installed,
and loads them in the namespace.
1 2 3 4 5 6 7 8 9 |
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
1 2 3 4 5 6 7 8 | pkg <- c(
"parallel",
"stats",
"stats4"
)
util_load_pkg(
pkg = pkg
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.