Skip to contents

Test the current reporting level. isVerbose() gates user-facing progress messages, isDebug() gates internal consistency warnings that are silent in normal use. Set the levels with options(en.verbose = ) / options(en.debug = ), or set_option("verbose", ).

Both accept a level (0, 1, 2, ...) or a logical, which is read as 1/0.

Usage

isVerbose(level = 1)

isDebug(level = 1)

Arguments

level

numeric, the level to test against.

Value

TRUE if the configured level is at or above level.

Examples

isVerbose()
#> [1] FALSE
isDebug(2)
#> [1] FALSE