View source: R/rk.XML.varslot.R
rk.XML.varslot | R Documentation |
Create a XML node "varslot" for RKWard plugins
rk.XML.varslot( label, source, property = NULL, required = FALSE, multi = FALSE, duplicates = FALSE, min = 1, any = 1, max = 0, dim = 0, min.len = 0, max.len = NULL, classes = NULL, types = NULL, id.name = "auto", help = NULL, component = rk.get.comp(), i18n = NULL )
label |
Character string, a text label for the varslot. |
source |
Either a character string (the |
property |
Character string,
valid property for a XiMpLe node defined by |
required |
Logical, whether the selection of variables is mandatory or not. |
multi |
Logical, whether the varslot holds only one or several objects. |
duplicates |
Logical,
if |
min |
If |
any |
If |
max |
If |
dim |
The number of dimensions, an object needs to have. If |
min.len |
The minimum length, an object needs to have. |
max.len |
The maximum length, an object needs to have. If |
classes |
An optional character vector, defining class names to which the selection must be limited. |
types |
If you specify one or more variables types here, the varslot will only accept objects of those types. Valid types are "unknown", "number", "string", "factor", "invalid". Optional, use with great care, the user should not be prevented from making valid choices, and rkward does not always know the type of a variable! |
id.name |
Character vector, unique ID for the varslot.
If |
help |
Character string or list of character values and XiMpLe nodes,
will be used as the |
component |
Character string,
name of the component this node belongs to. Only needed if you
want to use the scan features for automatic help file generation; needs |
i18n |
Either a character string or a named list with the optional elements |
An object of class XiMpLe.node
.
rk.XML.vars
,
rk.XML.varselector
,
and the Introduction to Writing Plugins for RKWard
## Not run: test.varselector <- rk.XML.varselector("Select some vars") test.varslot <- rk.XML.varslot("Vars go here", source=test.varselector) cat(pasteXML(test.varslot)) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.