clearAllWindows {iSPlot} | R Documentation

## Clears all Gtk Windows

### Description

clearAllWindows destroys all gtk windows that have been opened when using interactive scatterplots. So all gtk windows stored in the environments, viewEnv and controlEnv, will be destroyed and the objects representing these windows will be removed from viewEnv and controlEnv. clearAllWindows is meant to be called from askToQuit. clearAllWindows also resets the control environment variables to their default values by calling setControlEnvDefaults.

### Usage

    clearAllWindows()

### Author(s)

Elizabeth Whalen

### See Also

`askToQuit`, `setDeleteEvents`, `setControlEnvDefaults`

### Examples

      if (interactive())
      {
        createControlWindow()
        Sys.sleep(1)
        # should call clearAllWindows by choosing 'quit' under file menu
        clearAllWindows()
      }

[Package iSPlot version 1.0.7 Index]