setWinAct: Add a Window Action to the Saved Action Vector

Description Usage Arguments Details Author(s)

View source: R/guiFuns.r

Description

Append a string value specifying an action to the first position of an action vector.

Usage

1
setWinAct(winName, action)

Arguments

winName

window name where action is taking place.

action

string value describing an action.

Details

When a function is called from a GUI, a string descriptor associated with the action of the function is stored internally (appended to the first position of the action vector). A user can utilize this action as a type of argument for programming purposes. The command getWinAct()[1] yields the latest action.

Sometimes it is useful to “fake” an action. Calling setWinAct allows the recording of an action, even if a button has not been pressed.

Author(s)

Alex Couture-Beil, Vancouver Island University, Nanaimo BC


PBSmodelling documentation built on Dec. 27, 2017, 5:03 p.m.