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

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

rk.XML.insertR Documentation

Create XML node "insert" for RKWard plugins

Description

This function creates an insert node to use snippets.

Usage

rk.XML.insert(snippet)

Arguments

snippet

Either a character string (the id of the snippet to be inserted), or an object of class XiMpLe.node (whose id will be extracted and used; must be a snippet!).

Value

An object of class XiMpLe.node.

See Also

rk.XML.snippets, rk.XML.snippet, 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)
# now to insert the snippet
test.insert <- rk.XML.insert(test.snippet)
cat(pasteXML(test.insert))

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