RGalaxy (version 1.16.2)

gmessage: Sends informational, warning, and error messages to the user.

Description

Send error, warning, and informational messages to the user. Use these instead of message, warning, and stop. Output is wrapped consistently and passed through sprintf so you can use inline formatting (see examples). Output of gstop will appear in Galaxy user's web browser.

Usage

gmessage(..., appendLF = TRUE)
gstop(..., call. = FALSE)
gwarning(..., call. = FALSE, immediate. = FALSE)

Arguments

...
Passed to sprintf.
appendLF
Passed to message.
call.
Passed to stop or warning.
immediate.
Passed to warning.

Value

NULL

See Also

message, warning, stop, sprintf

Examples

Run this code
gmessage("This is an %s message.", "example")
## Not run: 
# gstop("Encountered a %s error.", "serious")
# ## End(Not run)
## Not run: 
#  gwarning("Something is not quite right.")
# ## End(Not run)

Run the code above in your browser using DataLab