rk.XML.snippets: Create XML "snippets" node for RKWard plugins

View source: R/rk.XML.snippets.R

rk.XML.snippetsR Documentation

Create XML "snippets" node for RKWard plugins

Description

This function will create a snippets node for the document section, with optional child nodes <snippet> and <include>.

Usage

rk.XML.snippets(...)

Arguments

...

Objects of class XiMpLe.node. Accepts only <snippet> and <include>.

Value

An object of class XiMpLe.node.

See Also

rk.XML.plugin rk.XML.snippet, rk.XML.include, and the Introduction to Writing Plugins for RKWard

Examples

# define a formula section with varselector and varslots
test.formula <- rk.XML.vars("Variables", "Fixed", formula.dependent="Dependent")
# define the snippets section
test.snippet <- rk.XML.snippet(test.formula)
test.snippets <- rk.XML.snippets(test.snippet)
cat(pasteXML(test.snippets))

rkward-community/rkwarddev documentation built on May 9, 2022, 3:02 p.m.