PrintOutput: Print Output

View source: R/seqNdisplayR.R

PrintOutputR Documentation

Print Output

Description

Internal function

Usage

PrintOutput(messages, verbosity, no_line_change = FALSE)

Arguments

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)

Value

print output, warnings and errors based on messages list

Author(s)

SLA

Examples

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)


THJlab/seqNdisplayR documentation built on Aug. 31, 2024, 7:56 p.m.