requirePackages {BBmisc} | R Documentation |
If some packages could not be loaded and stop
is TRUE
the following exception is thrown:
“For <why> please install the following packages: <missing packages>”.
If why
is NULL
the message is:
“Please install the following packages: <missing packages>”.
requirePackages(packs, why = NULL, stop = TRUE, suppress.warnings = FALSE, ...)
packs |
[ |
why |
[ |
stop |
[ |
suppress.warnings |
[ |
... |
[any] |
[logical
]. Named logical vector describing which packages could be loaded.
Same length as packs
.
requirePackages(c("BBmisc", "base"), why="BBmisc example")
## BBmisc base
## TRUE TRUE