Analytics.Engine.engineExecute()

Signature

void engineExecute(String engine, String Rscript, boolean interactive)

Domain

ACTION

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

NameTypeDescription
engineStringEngine or Engine Pool Name
RScriptStringR Script to be evaluated
interactiveBoolean If the argument interactive is true, the expression is evaluated as if it was in an interactive console

Returns

TypeDescription
Void

Cautions

Use try catch block with getLastErrorMessage() inside catch to get detailed error message

Example

Analytics.Model.engineExecute("engine1", "a<-3", true);