Package org.renjin.sexp

Examples of org.renjin.sexp.Symbol


    assert arg!=null;
    if(!(arg instanceof FunctionCall)) {
      throw new EvalException("invalid .Internal() argument");
    }
    FunctionCall internalCall = (FunctionCall) arg;
    Symbol internalName = (Symbol)internalCall.getFunction();
    SEXP function = Primitives.getInternal(internalName);
    if(function==null || function == Null.INSTANCE) {
      throw new EvalException(String.format("no internal function \"%s\"", internalName.getPrintName()));
    }
    return ((Function)function).apply(context, rho, internalCall, internalCall.getArguments());
  }
View Full Code Here

TOP

Related Classes of org.renjin.sexp.Symbol

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.