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

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

rk.XML.snippetR Documentation

Create XML "snippet" node for RKWard plugins

Description

This function will create a snippet node for snippets sections.

Usage

rk.XML.snippet(..., id.name = "auto")

Arguments

...

Objects of class XiMpLe.node.

id.name

Character string, a unique ID for this plugin element. If "auto", an ID will be generated automatically from the tag names and IDs of the given nodes.

Value

An object of class XiMpLe.node.

See Also

rk.XML.snippets, 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 snippet
test.snippet <- rk.XML.snippet(test.formula)
cat(pasteXML(test.snippet))

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