inst/Examples/ex-helloworld.R

## Simplest example with a callback

w <- gwindow("Hello world example")
b <- gbutton("click me", cont = w)
addHandlerClicked(b, handler = function(h,...) {
  gmessage("Hello world", parent=w)
})
## show off
gstatusbar("Powered by RApache and gWidgetsWWW", cont = w)
visible(w) <- TRUE

Try the gWidgetsWWW package in your browser

Any scripts or data that you put into this service are public.

gWidgetsWWW documentation built on May 2, 2019, 4:47 p.m.