message_print: 'print' objects to the 'message' output.

Description Usage Arguments Examples

View source: R/string.utilities.R

Description

A thin wrapper around print that captures its output and prints it as a message, usually to STDERR.

Usage

1
message_print(..., messageArgs = NULL)

Arguments

...

arguments to print.

messageArgs

a list of arguments to be passed directly to message.

Examples

1
2
3
4
5
6
7
cat(1:5)

print(1:5)
message_print(1:5) # Looks the same (though may be in a different color on some frontends).

suppressMessages(print(1:5)) # Still prints
suppressMessages(message_print(1:5)) # Silenced

statnet.common documentation built on June 5, 2021, 5:06 p.m.