Some utility functions that are not exported
miniGUIgetFormals(f)
miniGUIcallEval(f,p,e)
miniGUIoutput(x,mess="\nminiGUI output: \n")
An R\ function.
a list with all the parameters f
requires.
environment where the parameters p
of f
are evaluated. By default .GlobalEnv
.
An R\ object to print.
a string with a brief message that is printed before
x
.
These functions are internal functions that helps building the
GUI map. addMenusCmd
adds a menu to the main
miniGUI
frame. miniGUIgetFormals
gets the
parameter list of the function f
filtering ellipsis.
miniGUIcallEval
performs the evaluation f
when
the arguments are set to those of p
. miniGUIoutput
is used to print out the result of the computation.
At the present moment, miniGUIeval
is the same as the function
miniGUIcallEval
, while miniGUIEnvir
is used to store
miniGUI
internal data. In particular, miniGUIEnvir$miniGUIans
stores the result of the last computation made by a call to any of the
miniGUI
menu functions or any function widget created with
by the functions makeWidgetCmd
or mapFuncToWidget
. On
the other hand miniGUIEnvir$miniGUIData
stores information and
parameters required to compute function widgets. In ordet to do so,
function storageName
is used to avoid name collisons. The functions
setMiniGUIData
setMiniGUIans
, getMiniGUIData
,
getMiniGUIans
are used to set and get data from
miniGUIEnvir$miniGUIData
and miniGUIEnvir$miniGUIans
resp..