ginput {gWidgetsWWW2}R Documentation

input dialog.

Description

Used for getting a text string to pass to a handler. Unlike other gWidgets implementations, this call does not block the R process, so any response to the user must be done through the handler.

Usage

ginput(message, text = "", title = "Input", icon = NULL, parent = NULL,
  handler = NULL, action = NULL, ...)

Arguments

message

message

text

initial text for the widget

title

title for dialog's window

icon

icon ignored here

parent

parent container (main window instance)

handler

Called if yes is selected, the component input of the first argument holds the user-supplied string.

action

passed to any handler

...

ignored

Value

return value ignored, use handler for response

Examples

w <- gwindow()
gbutton("click me for a message", cont=w, handler=function(h,...) {
  ginput("What is your name?", parent=w, handler=function(h,...) {
    galert(paste("Hello", h$input), parent=w)
  })
})

[Package gWidgetsWWW2 version 0.4-8 Index]