echo: Generate JavaScript echo command call

View source: R/echo.R

echoR Documentation

Generate JavaScript echo command call

Description

This function will take several elements, either character strings, or objects of class XiMpLe.node which hold an XML node of some plugin GUI definition, or objects of classes rk.JS.arr or rk.JS.opt. From those, it will generate a ready-to-run JavaScript echo(); call from it.

Usage

echo(..., newline = "")

Arguments

...

One or several character strings and/or XiMpLe.node objects with plugin nodes, and/or objects of classes rk.JS.arr or rk.JS.opt, simply separated by comma.

newline

Character string, can be set to e.g. "\n" to force a newline after the call.

Value

A character string.

See Also

rk.JS.vars, rk.JS.array, rk.JS.options, ite, id, qp, and the Introduction to Writing Plugins for RKWard

Examples

cbox1 <- rk.XML.cbox(label="foo", value="foo1", id.name="CheckboxFoo.ID")
echo("bar <- \"", cbox1, "\"")

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