If there is a way to embed in gWidgets objects from other packages.
For example from the package utils.
options(guiToolkit = "RGtk2")
library(RGtk2)
library(gWidgets)
library(gWidgetsRGtk2)
library(utils)
w <- gwindow() # gwindow {gWidgets}
e <- edit(InsectSprays) # edit.data.frame {utils}
It is not possible as
gWidgetssupports only objects of the certain class likegButton,gWindowetc.gWidgetsdoes not contain documented functions to import \ embed external library \ package GUI objects. E.g.moreover after execution of the code the code returns control to the R programming environement.
In contrast
utils::editfunction returns thedata.frameobject and suspend R execution environement.Based on the comment jverzani, the new version of the package
gWidgets2allows to get access to the underlying widgets if you want to integrate into other GUIs. UsinggWidgets2'sgetToolkitWidgetmethod it is possible to attach underlying GUI items into a layout, theaddmethod should work.