[R-gui] tkStartGUI and on.exit

jhallman@frb.gov jhallman at frb.gov
Wed Aug 31 22:01:40 CEST 2005


I'm using a modified version of tkStartGUI that creates a window with a
menubar.  My question is, once I've gotten the app up and running, how do I
get out?  tkStartGUI does something like this:

tkadd(quitMenu, "command", label = "Quit R", command = quote(q()))

but this does not run any of the on.exit() expressions. I use on.exit()
expressions to save stuff before quitting my application.  Is there a better
way?

Jeff



More information about the R-SIG-GUI mailing list