viewHtml {RGtkViewers} | R Documentation |
This is a simple browser-like HTML viewer that provides a way to display HTML content, create emebedded R ``applets'', and process links and forms. It provides a history menu, a text field for specifying a file name, and a status bar.
viewHtml(fileName = system.file("examples", "form.html", package = "RGtk"), createWindow = TRUE, objectHandler = embeddedObjectHandler, linkHandler = NULL, formHandler = NULL, imageHandler = htmlLoadImage)
fileName |
the name of the file (or the HTML content directly) to display |
createWindow |
a logical value indicating whether to create a top-level window and display the HTML widget there or just create the basic HTML widget and return that so it can be included in a larger/different GUI. |
objectHandler |
the function that is to be used for handling
<OBJECT> tags, or more specifically
object-requested signals from the GtkHTML object. |
linkHandler |
a function that is used as a callback for handling links within the document. It is called with 2 arguments: the widget and the name of the link being requested. |
formHandler |
the function that is used as a callback for
processing forms, or more specifically submit signals. |
imageHandler |
callback for the url-requested signal to load an image. |
A list containing the different elements
win |
the top-level GtkWindow object. |
html |
the GtkHTML object used for displaying the
content. |
callbackIds |
the handles/identifiers for the
signal handlers for the link and submit signals.
These can be used to remove the handlers and/or add new ones. |
load |
a function that can be used to load a new file and that takes care of adding to the history list, etc. |
setStatus |
a function that can be used to display a message in the status bar. It should be called with the string to display, (or a collection of values that are pasted together separated by a single space). |
Duncan Temple Lang <duncan@research.bell-labs.com>
http://www.omegahat.org/RGtk, http://www.gtk.org
viewHtml()