これはあなたの前の質問に関連しています。答えは基本的にノーですが、gWidgets2の開発バージョンを使用する場合は次のようになります。
require(devtools)
install_github("gWidgets2", username="jverzani")
install_github("gWidgets2RGtk2", username="jverzani")
次に、これをハックすることができます。そのバージョンでは、ウィジェットをツールバーに配置できるためです。これがそのような作品です:
w <- gwindow()
h <- function(h,...) print("hi")
l <- list(file=gaction("file", icon="ok", handler=h),
open=gaction("open", icon="open", handler=h),
quit=gaction("quit", icon="quit", handler=h))
popup <- gmenu(l, popup=TRUE)
tbl <- list(c=gaction("cancel", icon="cancel", handler=h),
b=gbutton("file")) ## adding a widget
addPopupMenu(tbl$b, popup) ## put popup menu on b
tbl$b$remove_border()
tb = gtoolbar(tbl, cont=w, style="both-horiz")
glabel("fill me in", cont=w)
このバージョンにはまだいくつかのウィジェットを追加する必要があります(ツリーウィジェット、データフレームエディターなどはまだありません)。