nice_require: Load a package and offer to install if missing

Description Usage Arguments Value Author(s) Examples

View source: R/helpers.r

Description

If running R in interactive mode, the user is prompted for installing missing packages. If running in batch mode an error is thrown.

Usage

1
nice_require(pkg, reason)

Arguments

pkg

Package name.

reason

A status message that informs the user why the package is needed.

Value

Nothing

Author(s)

Christofer Bäcklin

Examples

1
nice_require("base", "is required to do anything at all")

emil documentation built on Aug. 1, 2018, 1:03 a.m.

Related to nice_require in emil...