message {loggit2}R Documentation

Diagnostic Messages Log Handler

Description

This function is identical to base R's message, but it includes logging of the exception message via loggit().

Usage

message(..., domain = NULL, appendLF = TRUE, .loggit = TRUE, echo = TRUE)

Arguments

...

zero or more objects which can be coerced to character (and which are pasted together with no separator) or (for message only) a single condition object.

domain

see gettext. If NA, messages will not be translated, see also the note in stop.

appendLF

logical: should messages given as a character string have a newline appended?

.loggit

Should loggit() execute? Defaults to TRUE.

echo

Should loggit()'s log entry be echoed to the console, as well? Defaults to TRUE.

Value

Invisible NULL.

See Also

Other handlers: stopifnot(), stop(), warning()

Examples

  if (2 < 1) message("Don't say such silly things!")


[Package loggit2 version 2.2.2 Index]