log_message | R Documentation |
Integrate the message printing function with the cli
package,
and the message
function.
The message could be suppressed by suppressMessages
.
log_message(
...,
verbose = TRUE,
message_type = c("info", "success", "warning", "error"),
cli_model = TRUE
)
... |
Text to print. |
verbose |
Logical value, default is |
message_type |
Type of message, default is |
cli_model |
Logical value, default is |
log_message("Hello, ", "world!")
log_message("Hello, ", "world!", message_type = "success")
log_message("Hello, world!", message_type = "warning")
suppressMessages(log_message("Hello, ", "world!"))
log_message("Hello, world!", verbose = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.