The gWidgetsWWW package allows
gWidgets scripts to be run
through a web browser. For wider deployment, the package can be
run through the RApache package. To develop scripts and to
run scripts standalone, the local server may be used.
The package uses R's dynamic help web server for the local server. The
main functions are
1 2 3 4 5 6 7 8 9 10 11
Name of file to open. If no
If specified, files are found reltive to this package through
A file or url to source in to create the web page.
passed to constructor
start the help system web server if it isn't already started.
localServerSource to download a file from a website to
run. This allows one to distribute scripts quite easily.
There is no way to send information to the browser from the R
console. The browser must initiate the request.
The local server logs error messages in the console.
localServerRestart are deprected.
localServerSource a new browser page is opened.
The dynamic help system is well described by Duncan Murdoch and Simon Urbanek here in "The New R Help System." The R Journal, 1(2):60-65, December 2009. The use of a custom handler was derived by work of Romain Francois's highlight package http://romainfrancois.blog.free.fr/.
Rpad where this idea originated.
1 2 3 4 5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.