print_msg | R Documentation |
Print a message based on the level of verbosity
print_msg(msg, msg_type = c("INFO", "DEBUG", "WARNING", "STOP"))
msg |
The message to be printed |
msg_type |
The type of message, one of "INFO", "DEBUG", or "WARNING" |
None
opt_warn <- options()$warn
set_verbosity(1)
print_msg("Hello world!", "INFO")
set_verbosity(3)
print_msg("Debugging message", "DEBUG")
set_verbosity(0)
print_msg("Hello world!", "INFO")
print_msg("Debugging message", "DEBUG")
options(warn=-1)
print_msg("A warning message not displayed", "WARNING")
options(warn=opt_warn)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.