Put up a Windows dialog box to communicate with the user. There are various types, either for the user to select from a set of buttons or to edit a string.
1 2 3 4
character. The type of dialog box. It will have the buttons implied by its name.
character. The information field of the dialog box. Limited to 255 chars (by Windows, checked by R).
character. The default string.
winDialog a character string giving the name of the button
pressed (in capitals) or
NULL (invisibly) if the user had no
winDialogString a string giving the contents of the text
Ok was pressed, or
Cancel was pressed.
The standard keyboard accelerators work with these dialog boxes:
Return accepts the default action,
Esc cancels and the underlined initial letter (
N) can be used.
These functions are only available on Windows.
file.choose to select a file
windlgs in the package source distribution for ways to
program dialogs in C in the
## Not run: winDialog("yesno", "Is it OK to delete file blah")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.