new package gWidgetsWWW

1 view
Skip to first unread message

jver...@gmail.com

unread,
Jul 18, 2008, 4:44:11 PM7/18/08
to Rpad
The gWidgetsWWW package uses Rpad to let dynamic web pages be built
using the gWidgets API. The gWidgets package simplifies the use of
graphical toolkits for the R user (at a cost in flexibility and power
of course). A basic page may look like this:

HTML header to call in Rpad and the EXT JS libraries (sorry dojo
didn't cut it). Examples are in the package.

<pre dojoType="Rpad" rpadType="R" rpadOutput="javascript"
rpadRun="init">

require(gWidgetsWWW, quietly = TRUE)
w = gwindow("title of page")
g = ggroup(cont = w)
b = gbutton("hello", cont = g, handler = function(h,...)
{ gmessage("world", parent=b)})
b1 = gbutton("change it", cont =g , handler = function(h,...)
svalue(b) = "goodbye")
## print out java script to Rpad to render
w

<pre>

HTML footer to close page

Comments and suggestions for improvement are most welcome.
Reply all
Reply to author
Forward
0 new messages