with_verbosity: With verbosity.

View source: R/modulr.R

with_verbosityR Documentation

With verbosity.

Description

Temporarily change the verbosity.

Usage

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

define("foo", NULL, { "bar" })
with_verbosity(-Inf, {
  make("foo")
})


aclemen1/modulr documentation built on Oct. 2, 2024, 7:18 a.m.