From dmitrie at ymail.com Mon Mar 11 14:16:32 2013 From: dmitrie at ymail.com (Dmitri E) Date: Mon, 11 Mar 2013 06:16:32 -0700 (PDT) Subject: [Gwidgets-questions] Problems with loading a workspace with gWidgets objects inside Message-ID: <1363007792.47296.YahooMailNeo@web163605.mail.gq1.yahoo.com> Hi, I'm trying to understand how I can save and load gWidgets objects. When I create a gWidgets object, save a workspace and then load it back, I get an error trying to access it: require (gWidgets) options (guiToolkit="RGtk2") window <- gwindow() svalue(window) <- "Test 1" print(svalue(window)) save.image("saved.RData") load("saved.RData") svalue(window) <- "Test 2" print(svalue(window)) Error I get:?(rsession.exe:5180): Gtk-CRITICAL **: gtk_window_set_title: assertion `GTK_IS_WINDOW (window)' failed Seems that load() function doesn't recreate the gWidgets object properly. How can I fix it? Is there any other way to save the current GUI with all entered values and then load it back? Thanks! Dmitri