Functions available for GUI logic scripting |
Prev | Reference | Next |
Class which represents a single component or component-property. The most important instance of this class is the variable "gui" which is predefined as the root property of the current component. The following methods are available for instances of class "Component":
Returns the absolute ID of base_id, or - if base_id is omitted - the identifier of the component.
Discouraged. Use getString(), getBoolean(), or getList()
, instead. Returns the value of the given child property. Returns the value of this property, if ID is omitted.
Returns the value of the given child property as a string. Returns the value of this property, if ID is omitted.
Returns the value of the given child property as a boolean (if possible). Returns the value of this property, if ID is omitted.
Returns the value of the given child property as an array of strings (if possible). Returns the value of this property, if ID is omitted.
Set the value of the given child property to value.
Return an instance of the child-property with the given id.
Execute command whenever the child property given by id changes.
Class which represents a single R object. An instance of this class can be obtained by using makeRObject(objectname). The following methods are available for instances of class "RObject":
If any commands are still pending in the backend, the information provided by these methods can be out-of-date by the time that the plugin code is run. Do not rely on it for critical operations (risking loss of data).
Returns the absolute name of the object.
Returns whether the object exists. You should generally check this before using any of the methods listed below.
Returns an array of dimensions (similar to dim() in R).
Returns an array of classes (similar to class() in R).
Returns true, if the object is of class class.
Returns true, if the object is a data.frame.
Returns true, if the object is a matrix.
Returns true, if the object is a list.
Returns true, if the object is a function.
Returns true, if the object is an environment.
Returns true, if the object is a vector of numeric data.
Returns true, if the object is a vector of factor data.
Returns true, if the object is a vector of character data.
Returns true, if the object is a vector of logical data.
Returns an instance of "RObject" representing the parent of this object.
Returns an instance of "RObject" representing the child childname of this object.
An array of RObject instances. An instance of this class can be obtained by using makeRObjectArray(objectnames). It is particularly useful when dealing with varslots which allow to select multiple objects.
include(filename) can be used to include a separate JS file.
doRCommand(command, callback) can be used to query R for information. Please read the section on querying R from inside a plugin for details, and caveats.
Prev | Contents | Next |
Elements for use in .rkh (help) files | Up | Troubleshooting during plugin development |