warning {loggit2} | R Documentation |
This function is identical to base R's warning
,
but it includes logging of the exception message via loggit()
.
warning(
...,
call. = TRUE,
immediate. = FALSE,
noBreaks. = FALSE,
domain = NULL,
.loggit = TRUE,
echo = TRUE
)
... |
zero or more objects which can be coerced to character (and which are pasted together with no separator) or a single condition object. |
call. |
logical, indicating if the call should become part of the warning message. |
immediate. |
logical, indicating if the call should be output
immediately, even if |
noBreaks. |
logical, indicating as far as possible the message should
be output as a single line when |
domain |
see |
.loggit |
Should |
echo |
Should |
The warning message as character
string, invisibly.
Other handlers:
message()
,
stopifnot()
,
stop()
if (2 < 1) warning("You may want to review that math, and so this is your warning")