View source: R/progress_messages.R
message_switch | R Documentation |
switch message output based in input
message_switch(type, verbose = TRUE, ...)
type |
name of message output to produce |
verbose |
logical if message should be outputed |
... |
any other parameter |
Essentially, all message types are listed in this giant switch. The type defines what message you want to output. We select named arguments from '...' and parse them when required. Adding message is straight forward by simply using the template in other switch types. This also means that you can add and remove messages without causing errors. While this might lead to dead code, better dead code than buggy code with undefined functions...
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.