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
)
A text string that denotes the dialog title.
A text string that contains the funcion name for the relevant function (if any) in the help dialog.
Integer step in the GAT program, for help reference.
A text string containing the help message.
A text string stating the request or message for the user.
A text string that is pre-entered in the text box.
The step name to display in the title bar.
Boolean denoting whether to include the back button.
if (interactive()) {
inputGATvalue(title = "Learning your name",
message = "Please enter your name.",
defaulttext = "Charlie Brown")
}
#> [1] "cancel"