Learn R Programming

svDialogs (version 0.9-43)

guiDlgMessage: Display a message box

Description

A classical message box with icon, text, and one to three buttons.

Usage

guiDlgMessage(message, title = "Message",
    type = c("ok", "okcancel", "yesno", "yesnocancel"),
    default = 1, icon = c("info", "question", "error", "warning"), parent = 0,
    GUI = getOption("guiWidgets"))

Arguments

message
the message to display in the dialog box.
title
the title of the dialog box.
type
the type of dialog box: 'ok', 'okcancel', 'yesno' or 'yesnocancel'.
default
the default button (if more than one).
icon
the icon: info, question, error or warning.
parent
the parent of this dialog box (not implemented yet).
GUI
which GUI widgets do you want to use (tcltk ...).

Value

  • A string with the caption of the button that the user pressed.

concept

GUI API dialog boxes

See Also

guiDlgInput

Examples

Run this code
### TODO...

Run the code above in your browser using DataLab