ite | R Documentation |
This function is very similar to ifelse
. If you would like to use if conditions
directly, have a look at the js
wrapper instead.
ite(ifjs, thenjs, elsejs = NULL)
ifjs |
Either a character string to be placed in the brackets of an |
thenjs |
Either a character string,
the code to be executed in case the |
elsejs |
Like |
An object of class rk.JS.ite
js
,
rk.paste.JS
,
rk.JS.vars
,
rk.JS.array
,
rk.JS.options
,
echo
,
id
,
qp
,
and the Introduction to Writing Plugins for RKWard
# first create an example checkbox XML node cbox1 <- rk.XML.cbox(label="foo", value="foo1", id.name="CheckboxFoo.ID") # now some JavaScript generation ite(cbox1, echo("bar <- \"", cbox1, "\""), echo("bar <- NULL"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.