doAction {PBSmodelling} | R Documentation |
Executes the action expression formulated by the user and written as an action by a widget.
doAction(act)
act |
string representing an expression that can be executed |
If act
is missing, doAction
looks for it in the action
directory of the window's widget directory in .PBSmod
. This
action can be accessed through getWinAct()[1]
.
Due to parsing complications, the expression act
must contain
the backtick character ` wherever there is to be an internal
double quote " character. For example,
"openFile(paste(getWinVal()$prefix,`.tpl`,sep=``))"
Invisibly returns the string expression act
.
The action is
Rowan Haigh, Pacific Biological Station, Nanaimo BC
createWin("button text=\"list directory files\" func=doAction action=print(ls())", astext=TRUE)