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, ...)
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
messages help instruction.
messages
install.packages, library
# NOT RUN { # } # NOT RUN { ## Excluded fom CRAN checks. Package installation on server is unnecessary. require2(ada) library2("statmod") # } # NOT RUN { # }
Run the code above in your browser using DataLab