Description Usage Arguments Value Examples
with_message
and with_warning
add a warning or a message to a function.
without_message
and without_warning
turn the warning and message off.
1 2 3 4 5 6 7 | with_message(.f, msg)
with_warning(.f, msg)
without_message(.f)
without_warning(.f)
|
.f |
the function to wrap |
msg |
the message to print |
a function
1 2 | msg_as_num <- with_message(as.numeric, msg = "Numeric conversion")
warn_as_num <- with_warning(as.numeric, msg = "Numeric conversion")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.