An implementation of a generic message box using Tk.
tk_messageBox(type = c("ok", "okcancel", "yesno", "yesnocancel",
"retrycancel", "abortretryignore"),
message, caption = "", default = "", ...)
character. The type of dialog box. It will have the buttons implied by its name. Can be abbreviated.
character. The information field of the dialog box.
the caption on the widget displayed.
character. The name of the button to be used as the default.
additional named arguments to be passed to the Tk
function of this name. An example is icon = "warning"
.
A character string giving the name of the button pressed.
tkmessageBox
for a ‘raw’ interface.