note {mmstat4} | R Documentation |
Create and display a note
Description
note
internally stores a colored message, while display
utilizes base::cat()
to present them
and reset the internal message stack.
Usage
note(msg, col = crayon::green)
display()
Arguments
msg |
character: message |
col |
function: a color function (default: |
Value
note
returns invisibly the number of notes
Examples
notetest <- function(msg) {
on.exit({ display() })
note(msg)
# do some complex computation
x <- 1+1
}
notetest("Hello world!")
[Package mmstat4 version 0.2.1 Index]