Learn R Programming

berryFunctions (version 1.10.0)

require2: install.package and require

Description

install and load a package. If a package is not available, it is installed before being loaded

Usage

require2(name, ...)

Arguments

name
Name of the package(s). Can be qouted, must not.
...
Arguments passed to install.packages like lib, repos etc.

Value

Cats help instruction.

See Also

install.packages, require

Examples

Run this code

## Not run: 
# ## Excluded fom CRAN checks. Package installation on server is unnecessary.
# require2(ada)
# ## End(Not run)

Run the code above in your browser using DataLab