Evaluate {rGroovy} | R Documentation |
Function evaluates (executes) the groovy script and returns the result.
Description
Function evaluates (executes) the groovy script and returns the result.
Usage
Evaluate(groovyShell = NULL, groovyScript)
Arguments
groovyShell |
The groovyShell with which to execute the specified groovy script. Note that the groovyShell can be NULL, however if this is NULL then the Initialize function must have been called so that a global groovyShell instance will be available in the environment otherwise an exception is raised. |
groovyScript |
The groovy script being executed. |
Value
The result of the script execution.
Examples
## Not run:
Initialize ()
Evaluate (groovyScript="print 'Hello world!'")
## End(Not run)
[Package rGroovy version 1.3 Index]