Convenient wrappers around message() to sent styled notices to the user
while a function/script is being executed.
msgInfo(..., appendLF = TRUE) msgError(..., appendLF = TRUE) msgSuccess(..., appendLF = TRUE) msgWarning(..., appendLF = TRUE)
| ... | text to be passed to |
|---|---|
| appendLF | a logical. Should messages given as a character string have a new line appended ? |
Reports an info.
msgError: Reports an Error.
msgSuccess: Reports a success.
msgWarning: Reports a warning.
All of these functions call message(), so for any function FUN() using #' them, suppressMessages(FUN()) is sufficient to mute all messages.
msgInfo("computing")#>msgSuccess("done")#> ✔ donemsgError("you got it wrong")#> ✖ you got it wrongmsgWarning("be careful")#> ⚠ be careful