warn: Warning log message

View source: R/log.R

warnR Documentation

Warning log message

Description

Styled non-fatal message. By default emits a soft styled message via msg(); with use_warning = TRUE, calls warning() so callers can catch via tryCatch(..., warning = handler).

Usage

warn(..., use_warning = FALSE, bold = FALSE, verbosity = NULL, package = NULL)

Arguments

...

Message components, concatenated with no separator.

use_warning

Logical: If TRUE, signal an R warning condition instead of (or in addition to) writing a styled message.

bold

Logical: If TRUE, apply bold styling to the message.

verbosity

Integer or NULL: Overrides get_verbosity() when supplied.

package

Character or NULL: Package name for verbosity override.

Value

Invisible NULL.

Author(s)

EDG

Examples

warn("Disk usage at ", 92L, "%")

rtemis.core documentation built on Sept. 20, 2026, 9:06 a.m.