View source: R/handlers_non_base.R
| debuginfo | R Documentation |
This function works like base R's warning ,
but is silent, includes logging of the exception message via loggit() and does not allow conditions as input.
debuginfo(..., call. = TRUE, .loggit = NA, echo = get_echo())
... |
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. |
.loggit |
Should the condition message be added to the log?
If |
echo |
Should the log entry (json) be echoed to |
This function is more than just a wrapper around loggit() with a log level of "DEBUG".
It has the ability to track the call stack and log it if call. is set to TRUE and to automatically
translate the input into a message using .makeMessage(), like warning() does.
No return value.
Other handlers:
message(),
stop(),
stopifnot(),
warning()
## Not run:
debuginfo("This is a completely false condition")
debuginfo("This is a completely false condition", echo = FALSE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.