library2 | R Documentation |
install and load a package. If a package is not available, it is installed before being loaded
library2(name, quietly = FALSE, libargs = NULL, ...)
name |
Name of the package(s). Can be quoted, must not. |
quietly |
passed to |
libargs |
List of arguments passed to |
... |
Arguments passed to |
messages
help instruction.
Passing a vector with packages will work, but give some warnings.
Berry Boessenkool, berry-b@gmx.de, 2014+2020
install.packages
, library
## Not run:
## Excluded fom CRAN checks. Package installation on server is unnecessary.
require2(ada)
library2("statmod")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.