setDeleteEvents {iSPlot} | R Documentation |
setDeleteEvents removes the gtk window, gtk device and view information from environment variables in viewEnv and also removes the device from R's device list. setDeleteEvents calls removeDevices and removeEnvView before destroying the window. setDeleteEvents also removes the window menu item on the control window that refers to this view and it removes the accelerator that would activate this view.
setDeleteEvents(viewItem)
viewItem |
the view object to delete |
Elizabeth Whalen
removeDevices
,
removeEnvView
,
closeWin
,
clearAllWindows
,
removeAccelerators
,
addWindowMenu
if (interactive()) { createControlWindow() # should load data through Open Data or Open File under the File menu data(USArrests) loadDFData(USArrests,"USArrests") # plotting the data should occur through Plot Data under # the Display menu createView(type = "plotView", dataName = "USArrests", plotType = "sPlotView", dfRows = 1:nrow(USArrests), dfColumns = 1:2) # now check viewList in viewEnv, as well as R's device list get("viewList",viewEnv) dev.list() # now close the gtk window that has the scatterplot in it # closing the window will cause setDeleteEvents to be called # then check again viewList in viewEnv, as well as # R's device list - all should have removed the window and device info get("viewList",viewEnv) dev.list() }