public static REXP asCall(String name, REXP arg1, REXP arg2) { return new REXPLanguage(new RList(new REXP[] { new REXPSymbol(name), arg1, arg2 })); } public static REXP asCall(String name, REXP arg1, REXP arg2, REXP arg3) {
public static REXP asCall(String name, REXP arg1) { return new REXPLanguage(new RList(new REXP[] { new REXPSymbol(name), arg1 })); } public static REXP asCall(String name, REXP arg1, REXP arg2) {
public static REXP asCall(String name, REXP[] args) { return asCall(new REXPSymbol(name), args); }
public static REXP asCall(String name, REXP arg1, REXP arg2, REXP arg3) { return new REXPLanguage(new RList(new REXP[] { new REXPSymbol(name), arg1, arg2, arg3 })); } public static REXP asCall(REXP what, REXP arg1) {
/** get a value from an environment @param symbol symbol name @param env environment @param resolve resolve the resulting REXP or just return a reference @return value */ public REXP get(String symbol, REXP env, boolean resolve) throws REngineException { if (!resolve) throw new REngineException(this, "Rserve doesn't support references"); try { return eval(new REXPSymbol(symbol), env, true); } catch (RserveException re) { throw new REngineException(this, re.getMessage()); } }
io = new REXPFactory(x).getBinaryRepresentation(buf, io); if (rxt == XT_LIST_TAG || rxt == XT_LANG_TAG) io = new REXPFactory(new REXPSymbol(lst.keyAt(i))).getBinaryRepresentation(buf, io); i++;
io = new REXPFactory(x).getBinaryRepresentation(buf, io); if (rxt == XT_LIST_TAG || rxt == XT_LANG_TAG) io = new REXPFactory(new REXPSymbol(lst.keyAt(i))).getBinaryRepresentation(buf, io); i++;
cont = new REXPString(new String[] { new String(buf, o, i-o, RConnection.transferCharset) }, getAttr()); else cont = new REXPSymbol(new String(buf, o, i-o, RConnection.transferCharset)); } catch(Exception e) { System.err.println("unable to convert string\n"); REXPFactory sym = new REXPFactory(); cont = new REXPSymbol(sym.getREXP().asString()); // content of a symbol is its printname string (so far) o=eox; return o;
cont = new REXPString(new String[] { new String(buf, o, i-o, RConnection.transferCharset) }, getAttr()); else cont = new REXPSymbol(new String(buf, o, i-o, RConnection.transferCharset)); } catch(Exception e) { System.err.println("unable to convert string\n"); REXPFactory sym = new REXPFactory(); cont = new REXPSymbol(sym.getREXP().asString()); // content of a symbol is its printname string (so far) o=eox; return o;