vcat: Tool: Verbosity Cat

Description Usage Arguments Author(s) See Also Examples

View source: R/vcat.R

Description

Function which returns information based on the verbosity setting

Usage

1
vcat(verbosity, ..., level = NULL, fill = TRUE, show_prefix = TRUE)

Arguments

verbosity

The lowest verbosity level for which this message should be shown (verbosity = -1 means no information at all, 0 = only warnings, 1 = warnings and execution informations, 2 = full information). If the verbosity is set to 0 the message is written as warning, if the verbosity is set higher than 0 it is written as a normal cat message.

...

The message to be shown

level

This argument allows to establish a hierarchy of print statements. The hierarchy is preserved for the next vcat executions. Currently this setting can have 4 states: NULL (nothing will be changed), 0 (reset hierarchies), "+" (increase hierarchy level by 1) and "-" (decrease hierarchy level by 1).

fill

a logical or (positive) numeric controlling how the output is broken into successive lines. If FALSE (default), only newlines created explicitly by "\n" are printed. Otherwise, the output is broken into lines with print width equal to the option width if fill is TRUE, or the value of fill if this is numeric. Non-positive fill values are ignored, with a warning.

show_prefix

a logical defining whether a content specific prefix (e.g. "NOTE") should be shown in front of the message or not. If prefix is not shown it will also not show up in official statistics.

Author(s)

Jan Philipp Dietrich

See Also

readSource

Examples

1
2
3
4
## Not run: 
vcat(2,"Hello world!")

## End(Not run)

madrat documentation built on Dec. 25, 2019, 9:07 a.m.