PrintOutput | R Documentation |
Internal function
PrintOutput(messages, verbosity, no_line_change = FALSE)
messages |
a list with messages stored under 'output', 'warnings' and 'errors' |
verbosity |
indicated by an integer 0 to 3 referring to the levels 'off', 'no warnings', 'normal', and 'detailed' |
no_line_change |
boolean whether a string of warning messages should be printed on the same line (TRUE) or different lines (FALSE) |
print output, warnings and errors based on messages list
SLA
messages = list('output'=list('This is the output string'), 'errors'=list('This is an error string'), 'warnings'=list('This is a warning string'))
PrintOutput(messages, verbosity=0)
PrintOutput(messages, verbosity=1)
PrintOutput(messages, verbosity=2)
messages2 = list('output'=list('This is the output string and no errors or warnings'), 'errors'=list(), 'warnings'=list())
PrintOutput(messages2, verbosity=2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.