Analytics.TERR.Engine.engineExecute()
Signature
void engineExecute(String engine, String Rscript, boolean interactive)
Description
Parse and evaluate an expression in the given TERR engine.If engine pool name is passed as a parameter, the expression will be evaluated in all the engines in the engine pool
Parameters
Name | Type | Description |
engine | String | Engine or Engine Pool Name |
RScript | String | R Script to be evaluated |
interactive | Boolean | If the argument interactive is true, the expression is evaluated as if it was in an interactive console |
Cautions
Use try catch block with getLastErrorMessage() inside catch to get detailed error message
Example
Analytics.Model.engineExecute("engine1", "a<-3", true);