powered by
Generate a formatted diagnostic message. This function is a shortcut for message(sprintf(...)).
message(sprintf(...))
messagef(fmt, ..., domain = NULL, appendLF = TRUE)wnote(..., immediate. = TRUE)
wnote(..., immediate. = TRUE)
a character vector of format strings, each of up to 8192 bytes.
values to be passed into fmt. Only logical, integer, real and character vectors are supported, but some coercion will be done: see the ‘Details’ section. Up to 100.
fmt
see gettext.
gettext
logical: should messages given as a character string have a newline appended?
logical, indicating if the call should be output immediately, even if getOption("warn") <= 0.
getOption("warn") <= 0
wnote: throws a simple note as an immediate warning. It is a shorcut for warning(..., immediate. = TRUE, call. = FALSE).
wnote
warning(..., immediate. = TRUE, call. = FALSE)
sprintf, message
sprintf
message
# NOT RUN { messagef("Hello %s number %i", 'world', 4) # }
Run the code above in your browser using DataLab