Generate a diagnostic message from its arguments.
message(…, domain = NULL, appendLF = TRUE)
suppressMessages(expr)<p></p><p>packageStartupMessage(…, domain = NULL, appendLF = TRUE)
suppressPackageStartupMessages(expr)</p><p>.makeMessage(…, domain = NULL, appendLF = FALSE)</p>
| Parameter | Description |
|---|---|
… |
zero or more objects which can be coerced to character (and which are pasted together with no separator) or (for message only) a single condition object. |
domain |
see gettext. If NA, messages will not be translated, see also the note in stop. |
appendLF |
logical: should messages given as a character string have a newline appended? |
expr |
expression to evaluate. |
# NOT RUN {
message("ABC", "DEF")
suppressMessages(message("ABC"))
testit <- function() {
message("testing package startup messages")
packageStartupMessage("initializing ...", appendLF = FALSE)
Sys.sleep(1)
packageStartupMessage(" done")
}
testit()
suppressPackageStartupMessages(testit())
suppressMessages(testit())
# }