updateCurAction {iSPlot} | R Documentation

## Update curAction environment variable

### Description

updateCurAction updates the current action environment variable in controlEnv and calls updateControlWindow to reflect the change in current action on the control window.

### Usage

    updateCurAction(curAct, ...)

### Arguments

`curAct` | character string that describes which menu item was chosen
`...` | extra parameters that are passed to updateControlWindow

### Details

Currently, curAct can be one of the following strings: openf, opend, quit, find, reset, plotD, viewData, color, highlight, identify, hide, replot, or empty. If curAct is not one of those strings, then curAct is presumed to be the name of a function. When curAct is the name of a function, the ... parameter(s) is passed to that function using do.call so the ... parameter is available in case the function has parameters.

### Author(s)

Elizabeth Whalen

### See Also

`updateControlWindow`, `createMenuItem`

### Examples

      if (interactive())
      {
        createControlWindow()
        updateCurAction("opend")
      }

[Package iSPlot version 1.0.7 Index]