View source: R/rk.XML.insert.R
rk.XML.insert | R Documentation |
This function creates an insert node to use snippets.
rk.XML.insert(snippet)
snippet |
Either a character string (the |
An object of class XiMpLe.node
.
rk.XML.snippets
,
rk.XML.snippet
,
and the Introduction to Writing Plugins for RKWard
# define a formula section with varselector and varslots test.formula <- rk.XML.vars("Variables", "Fixed", formula.dependent="Dependent") # define the snippet test.snippet <- rk.XML.snippet(test.formula) # now to insert the snippet test.insert <- rk.XML.insert(test.snippet) cat(pasteXML(test.insert))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.