/** convenince method equivalent to <code>eval(parse(cmd, false), null, true);</code> @param cmd expression to parse (see {@link #parse}) @return result */ public REXP parseAndEval(String cmd) throws REngineException, REXPMismatchException { return parseAndEval(cmd, null, true); };
/** convenince method equivalent to <code>eval(parse(cmd, false), null, true);</code> @param cmd expression to parse (see {@link #parse}) @return result */ public REXP parseAndEval(String cmd) throws REngineException, REXPMismatchException { return parseAndEval(cmd, null, true); };
rMax = connectable.getRengine().parseAndEval("max(numList)").asDouble(); connectable.getRengine().parseAndEval("rm(list = setdiff(ls(), lsf.str()))"); } catch (Exception e) { log.error("Exception: ", e);
double rVariance = 0; try { rStandardDeviation = connectable.getRengine().parseAndEval("sd(values)").asDouble(); rVariance = connectable.getRengine().parseAndEval("var(values)").asDouble(); connectable.getRengine().parseAndEval("rm(list = setdiff(ls(), lsf.str()))"); } catch (Exception e) { log.error("Exception: ", e);
rMin = connectable.getRengine().parseAndEval("min(numList)").asDouble(); connectable.getRengine().parseAndEval("rm(list = setdiff(ls(), lsf.str()))"); } catch (Exception e) { log.error("Exception: ", e);
rMin = connectable.getRengine().parseAndEval("min(numList)").asDouble(); connectable.getRengine().parseAndEval("rm(list = setdiff(ls(), lsf.str()))"); } catch (Exception e) { log.error("Exception: ", e);
rMax = connectable.getRengine().parseAndEval("max(numList)").asDouble(); connectable.getRengine().parseAndEval("rm(list = setdiff(ls(), lsf.str()))"); } catch (Exception e) { log.error("Exception: ", e);
double rVariance = 0; try { rStandardDeviation = connectable.getRengine().parseAndEval("sd(values)").asDouble(); rVariance = connectable.getRengine().parseAndEval("var(values)").asDouble(); connectable.getRengine().parseAndEval("rm(list = setdiff(ls(), lsf.str()))"); } catch (Exception e) { log.error("Exception: ", e);
@Override public void setup(Context.OperatorContext context) { super.setup(context); try { connectable = new REngineConnectable(); connectable.connect(); REXP result = connectable.getRengine().parseAndEval(super.script); } catch (Exception e) { log.error("Exception: ", e); DTThrowable.rethrow(e); } }
@Override public void setup(Context.OperatorContext context) { super.setup(context); try { connectable = new REngineConnectable(); connectable.connect(); connectable.getRengine().parseAndEval(super.script); } catch (Exception e) { log.error("Exception: ", e); DTThrowable.rethrow(e); } }
REXP result = connectable.getRengine().parseAndEval(getReturnVariable() + "<-" + getFunctionName() + "()"); REXP retVal = connectable.getRengine().parseAndEval(getReturnVariable()); connectable.getRengine().parseAndEval("rm(list = setdiff(ls(), lsf.str()))");
REXP result = connectable.getRengine().parseAndEval(getReturnVariable() + "<-" + getFunctionName() + "()"); REXP retVal = connectable.getRengine().parseAndEval(getReturnVariable()); connectable.getRengine().parseAndEval("rm(list = setdiff(ls(), lsf.str()))");