Analytics.Engine.engineExecute()

Signature

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

Domain

ACTION

Description

Parse and evaluate an expression in the TERR engine.

Parameters

NameTypeDescription
engineStringEngine 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);