Learn R Programming

SPOT (version 2.11.10)

vmessage: formatted output dependent on verbosity

Description

Combine sprintf and writeLines to generate formatted output

Usage

vmessage(verbosity, text, value)

Arguments

verbosity

verbosity level

text

output to be printed

value

value to be printed

Examples

Run this code
# NOT RUN {
x <- 123
vmessage(1, "value of x:" , x)

# }

Run the code above in your browser using DataLab