| signal_info | R Documentation |
Raises the condition that
with_info_level() collects. This is the way for
mizer, and for anything extending it, to tell the user about a default it
filled in, an input it adjusted or an instruction it could not carry out,
without deciding on its own how loudly to say it: the handler installed by
whichever function the user actually called does that.
signal_info(
var,
message,
level = 3,
severity = c("info", "warning"),
unhandled = c("drop", "show"),
class = character()
)
var |
A string naming the quantity the report is about. |
message |
The message to give the user. |
level |
How important the report is. Level 1 is important enough to
survive |
severity |
|
unhandled |
What to do when no handler is collecting, for example
because a rate setter was called directly rather than through
|
class |
Further classes to give the condition, for code that wants to catch a particular kind of report. |
Progress reports are the one thing that does not belong here: they have to appear while the work is going on, and these are collected and given at the end.
NULL invisibly. Called for its side effect of signalling.
# With nothing collecting, a `"drop"` report says nothing at all ...
signal_info("h", "Using a default for `h`.")
# ... whereas `unhandled = "show"` reports it there and then.
signal_info("h", "Using a default for `h`.", unhandled = "show")
# Normally it is raised inside a call whose body is wrapped in
# `with_info_level()`, which is what decides whether to show it.
with_info_level(signal_info("h", "Using a default for `h`."))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.