View source: R/rk.XML.preview.R
rk.XML.preview | R Documentation |
Create XML node "preview" for RKWard plugins
rk.XML.preview( label = "Preview", mode = "plot", placement = "default", active = FALSE, id.name = "auto", i18n = NULL )
label |
A character string, text label for the preview checkbox. |
mode |
A character string, must be either |
placement |
A character string, must be either |
active |
Logical, whether the preview should be enabled by default. |
id.name |
Character string, a unique ID for this plugin element.
If |
i18n |
Either a character string or a named list with the optional elements |
An object of class XiMpLe.node
.
Introduction to Writing Plugins for RKWard
test.preview <- rk.XML.preview("See a preview?") cat(pasteXML(test.preview))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.