message(..., domain = NULL, appendLF = TRUE) suppressMessages(expr, classes = "message") packageStartupMessage(..., domain = NULL, appendLF = TRUE) .packageStartupMessage(message, call = NULL) suppressPackageStartupMessages(expr) .makeMessage(..., domain = NULL, appendLF = FALSE)
... | zero or more objects that can be coerced to character strings. For message, it can also be an object that inherits from the class "condition". |
domain | a character string specifying the domain to use for language translation. see gettext for more details. |
appendLF | a logical value. If TRUE (the default), a new line character is appended to the message. |
expr | the expression to be evaluated. |
classes | a vector of class names. |
message | a character string containing the message. |
call | a function call. |
message | returns NULL invisibly. |
suppressMessages | returns the value of expr. |
packageStartupMessage | returns NULL invisibly. |
.packageStartupMessage | returns an object of class c("packageStartupMessage", "condition", "message", "simpleMessage") with two components: message and call. |
.makeMessage | returns a character string. |
message("This is a message:", 1, 2, 3, domain = "", appendLF = TRUE) # print message: This is a message:123suppressMessages(message("This is a message")) # don't print anything
packageStartupMessage("This is a package start message:", 1, 2, 3, appendLF = TRUE) # print message: This is a package start message:123
suppressPackageStartupMessages(packageStartupMessage("This is a package start message:", 1, 2, 3, appendLF = TRUE)) # don't print anything
.makeMessage("This is a message:", 1, 2, 3, appendLF = TRUE) # create message text string
.packageStartupMessage(message = .makeMessage("This is a package start message:", 1, 2, 3, appendLF = TRUE), call = NULL) # create packageStartupMessage condition