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
gWidgets
supports only objects of the certain class likegButton
,gWindow
etc.gWidgets
does 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::edit
function returns thedata.frame
object and suspend R execution environement.Based on the comment jverzani, the new version of the package
gWidgets2
allows to get access to the underlying widgets if you want to integrate into other GUIs. UsinggWidgets2
'sgetToolkitWidget
method it is possible to attach underlying GUI items into a layout, theadd
method should work.