dlgForm(form, title = "Fill the form", message = NULL, columns = 1,
strip.type = TRUE, ..., gui = .GUI)
## These should not be called directly
## S3 method for class 'gui':
dlgForm(form, title = "Fill the form", message = NULL, columns = 1,
strip.type = TRUE, \dots, gui = .GUI)
## S3 method for class 'textCLI':
dlgForm(form, title = "Fill the form", message = NULL, columns = 1,
strip.type = TRUE, \dots, gui = .GUI)
## S3 method for class 'nativeGUI':
dlgForm(form, title = "Fill the form", message = NULL, columns = 1,
strip.type = TRUE, \dots, gui = .GUI)\n for line break, or provide a vector of character strings, one for
each line.gui$res (see example).:TXT for simple (default) textual box,
:H for hidden text (password),
:RO for read-only text,
:NUM for null of positive integers with up/down arrows,
:CHK for checkbox: TRUE or FALSE,
:CB for read-only combobox,
:CBE for editable combobox,
:FL to select one existing file,
:MFL to select multiple existing files,
:SFL to select or create one file,
:DIR to select a directory,
:CDIR to select or create a directory,
:FN to select font and font size,
:DT to enter a date,
:CLR to enter a RGB color,
:BTN to create a button that execute some code,
:LBL to add a label.
For the moment, the form dialog box is only supported on Linux. You have to
install yad to get access to it. On Ubuntu, you do so by:
sudo add-apt-repository ppa:webupd8team/y-ppa-manager
sudo apt-get update
sudo apt-get install yaddlgInput## Ask a series of items at once in a dialog box
Form <- list(
"Name:TXT" = "John Smith",
"Age:NUM" = 25,
"Sex:CB" = c("male", "female"),
"Married:CHK"=FALSE
)
dlgForm(Form, "My form")$resRun the code above in your browser using DataLab