with_verbosity: With verbosity.

Description Usage Arguments Details Value See Also Examples

View source: R/modulr.R

Description

Temporarily change the verbosity.

Usage

1
with_verbosity(level, code)

Arguments

level

A scalar (integer vector of length one), possibly -Inf or +Inf.

code

Any object. Code to execute in the temporary environment.

Details

Verbosity is temporarily changed.

Value

The result of the evaluation of the code argument.

See Also

withr for examples of 'with_' methods, get_verbosity, and set_verbosity.

Examples

1
2
3
4
define("foo", NULL, { "bar" })
with_verbosity(-Inf, {
  make("foo")
})

openscienceunil/modulr documentation built on May 3, 2019, 5:49 p.m.