Rfile = "ex-index.R"
basedir = ifelse(RpadIsLocal(), "","/var/www/Rpad/")
file = paste(basedir, Rfile,sep="")
require(gWidgetsWWW, quietly=TRUE)
source(file)
g = gexpandgroup("Click this to see source for this example", cont = w)
visible(g) = FALSE
out = readLines(file)
out = paste(out, collapse="<p>") ## since this is in html page we escape
t = ghtml(out, cont = g, width=600, height=400)
visible(w) = TRUE ## main window from file is w