Package org.rosuda.REngine

Examples of org.rosuda.REngine.REXPNull


   
    try
    {
      rConnection.assign(".tmp.", WeaveConfig.getConnectionConfigFilePath());
      REXP result = rConnection.eval("length(readLines(.tmp.))");
      rConnection.assign(".tmp.", new REXPNull());
      rConnection.close(); // must close before throwing exception
      if (result.isNumeric())
        throw new RemoteException("R script access is not allowed because it is unsafe (The user running Rserve has file read/write access).");
      throw new RemoteException("Unexpected result in requestScriptAccess(): " + result);
    }
View Full Code Here



 
  /** Convert from Java Object to R expression. */
  public static REXP jobj2rexp(Object obj) {
    if(obj == null)            return new REXPNull();
    Class<?> cls = obj.getClass();
    if(obj instanceof REXP)  {
      return (REXP) obj;
    }
    else if(obj instanceof int[]){
View Full Code Here

TOP

Related Classes of org.rosuda.REngine.REXPNull

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.