This function creates a dialog box to ask the user for a specific value and provides a link to the relevant help file in the GAT program.

Figure: Dialog to enter an alphanumeric value

inputGATvalue(
  title = "GAT input window",
  helppage = NULL,
  step = 0,
  help = "Enter the desired value and click 'Next >'.",
  message = "Please enter something in the box.",
  defaulttext = "default text",
  helptitle = "this step",
  backopt = TRUE
)

Arguments

title

A text string that denotes the dialog title.

helppage

A text string that contains the funcion name for the relevant function (if any) in the help dialog.

step

Integer step in the GAT program, for help reference.

help

A text string containing the help message.

message

A text string stating the request or message for the user.

defaulttext

A text string that is pre-entered in the text box.

helptitle

The step name to display in the title bar.

backopt

Boolean denoting whether to include the back button.

Examples


if (interactive()) {
inputGATvalue(title = "Learning your name",
              message = "Please enter your name.",
              defaulttext = "Charlie Brown")
}
#> [1] "cancel"