Learn R Programming

emil (version 1.1-6)

nice.require: Load a package and offer to install if missing

Description

If running R in interactive mode, the user is prompted.

Usage

nice.require(pkg, reason = "is required")

Arguments

pkg
Package name.
reason
A status message that informs the user why the package is needed.

Value

  • Nothing

Examples

Run this code
nice.require("base", "is required to do anything at all")

Run the code above in your browser using DataLab