askToReset {iSPlot} | R Documentation

## Check that the user wants to reset the dataframe to its original state

### Description

askToReset opens a gtk window that asks the user if they really want to reset the dataframe to its original state and thus, lose all the changes they have made to the dataframe. askToReset is called when the user chooses the menu item 'reset' under the edit menu. If yes is chosen for reset, then the dataframe will be reset to its original state and any views reflecting that data will be redrawn. Note that if there are no views created, then reset will not be performed and a message box will open to let the user know that no changes have been made.

### Usage

    askToReset()

### Author(s)

Elizabeth Whalen

### See Also

`updateControlWindow`, `askToReplot`

### Examples

      if (interactive())
      {
        createControlWindow()
        # loading data should be performed through the menu item 'open data'
        data(USArrests)
        loadDFData(USArrests,"USArrests")
        # createView should be performed through the menu item 'plot data'
        createView(type = "plotView", dataName = "USArrests",
                   plotType = "sPlotView", dfRows = 1:nrow(USArrests),
                   dfColumns = 1:2)
        # should choose 'reset' under edit menu to call askToReset
        askToReset()
      }

[Package iSPlot version 1.0.7 Index]