powered by
install and load a package. If a package is not available, it is installed before being loaded
library2(name, libargs = NULL, ...)
Name of the package(s). Can be quoted, must not.
List of arguments passed to library like lib.loc, quietly etc. DEFAULT: NULL
library
lib.loc
quietly
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