guiDlgFunction: A dialog box prompting for function arguments
Description
Given a function, this dialog box prompts for values for its arguments.Usage
guiDlgFunction(fun, template = NULL, maxargs = 7, var = "res", width = 40,
labelwidth = 10, displayit = TRUE, execfun = getOption("guiExecFun"))
Arguments
fun
the name of the function to prompt for.
template
an optional template for the dialog box.
maxargs
the maximum number of arguments to include in the dialog box.
var
the default name of the variable where to assign result.
width
the width of the dialog box.
labelwidth
the width reserved for labels.
displayit
do we display it, or just construct it?
execfun
the function to use to execute resulting code.
Value
- A line of R code generated by the dialog box.
concept
GUI API dialog boxes