Description Usage Arguments Value Examples
Tests if a given expression produces a message.
1 | testMessage(expr)
|
expr |
expression to test. |
TRUE if a message is prodcued, FALSE otherwise.
1 2 3 4 | msgFun <- function() message("Test Function")
noMsgFun <- function() return("Test Function")
testMessage(msgFun()) # TRUE
testMessage(noMsgFun()) # FALSE
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.