jver...@gmail.com
unread,Jul 18, 2008, 4:44:11 PM7/18/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.