## show part of mtcars dataframe in a layout
w <- gwindow("glayout example")
tbl <- glayout(container = w)
tbl[1,1] <- "a label"
## need container argument in gWidgetstcltk, gWidgetsRwxwidgets
## so we always use it.
tbl[1,2, expand = TRUE] <- gedit("edit here", container=tbl)
tbl[2,1, anchor = c(-1,-1)] <- glabel("ll", container = tbl)
Run the code above in your browser using DataLab