View source: R/rk.XML.plugin.R
rk.XML.plugin | R Documentation |
Create XML document for RKWard plugins
rk.XML.plugin( name, dialog = NULL, wizard = NULL, logic = NULL, snippets = NULL, provides = NULL, help = TRUE, include = NULL, label = NULL, clean.name = TRUE, about = NULL, dependencies = NULL, gen.info = TRUE, i18n = NULL )
name |
Character string, the name of the plugin. Will be used for the names of the JavaScript and help files to be included, following the scheme "<name>.<ext>". |
dialog |
An object of class |
wizard |
An object of class |
logic |
An object of class |
snippets |
An object of class |
provides |
Character vector with possible entries of |
help |
Logical,
if |
include |
Character string or vector, relative path(s) to other file(s), which will then be included in the head of the GUI XML document. |
label |
Character string, a text label for the plugin's top level,
i.e. the window title of the dialog.
Will only be used if |
clean.name |
Logical, if |
about |
An object of class |
dependencies |
An object of class |
gen.info |
Logical, if |
i18n |
Either a character string or a named list with the optional elements |
An object of class XiMpLe.doc
.
Introduction to Writing Plugins for RKWard
## Not run: test.checkboxes <- rk.XML.row(rk.XML.col( list( rk.XML.cbox(label="foo", val="foo1", chk=TRUE), rk.XML.cbox(label="bar", val="bar2")))) test.dropdown <- rk.XML.dropdown("mydrop", options=list("First Option"=c(val="val1"), "Second Option"=c(val="val2", chk=TRUE))) # combine the above into a tabbook test.tabbook <- rk.XML.tabbook("My Tabbook", tabs=c( "First Tab"=test.checkboxes, "Second Tab"=test.dropdown)) # make a plugin with that tabbook test.plugin <- rk.XML.plugin("My test", dialog=rk.XML.dialog(test.tabbook)) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.