A common interface for printing messages of several types.
print_message(..., type, sep = "", date = FALSE, date_format = "")
... |
|
---|---|
type | Type of the output .Accepted values:
Intentionally, no default value is defined. |
sep | (optional) character used to separate input values (default is nothing). |
date | Logical value: set TRUE to place the date before the message (useful for logs or time consuming operations); default is FALSE. |
date_format | Format of the date (see |
Message (in the defined format).
Several functions print messages in different formats
(message, error, warning, cat, R output) and with different syntaxes
(concatenating parameters or accepting a single argument, appending
a new line, etc.).
This accessory function provides a common interface for different types:
several arguments are accepted and concatenated with the sep
argument;
the format is defined with the format
argument; a date is optionally
placed before the message.
License: GPL 3.0