powered by
install and load a package. If a package is not available, it is installed before being loaded
library2(name, quietly = FALSE, libargs = NULL, ...)
messages help instruction.
messages
Name of the package(s). Can be quoted, must not.
passed to library. DEFAULT: FALSE
library
List of arguments passed to library like lib.loc, verbose etc. DEFAULT: NULL
lib.loc
verbose
Arguments passed to install.packages like lib, repos etc.
install.packages
lib
repos
Berry Boessenkool, berry-b@gmx.de, 2014+2020
install.packages, library
if (FALSE) { ## Excluded fom CRAN checks. Package installation on server is unnecessary. require2(ada) library2("statmod") }
Run the code above in your browser using DataLab