Logo Search packages:      
Sourcecode: rserve version File versions  Download package

REXP org::rosuda::JRclient::Rconnection::eval ( String  cmd  )  throws RSrvException [inline]

evaluates the given command and retrieves the result

cmd command/expression string
R-xpression or null if an error occured

Definition at line 216 of file Rconnection.java.

References org::rosuda::JRclient::Rpacket::isOk(), and org::rosuda::JRclient::Rtalk::request().

            if (!connected || rt==null)
            throw new RSrvException(this,"Not connected");
            Rpacket rp=rt.request(Rtalk.CMD_eval,cmd+"\n");
            if (rp!=null && rp.isOk())
                  return parseEvalResponse(rp);
        throw new RSrvException(this,"eval failed",rp);

Generated by  Doxygen 1.6.0   Back to index