Learn R Programming

berryFunctions (version 1.7.1)

require2: install.package and require

Description

If a package is not available, it is installed before being loaded

Usage

require2(name, ...); library2(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
require2(ada)

Run the code above in your browser using DataLab