Package org.renjin.sexp.PairList

Examples of org.renjin.sexp.PairList.Builder


  }

  @Test
  public void testClosure() throws IOException {
   
    PairList.Builder formals = new Builder();
    formals.add("x", new IntArrayVector(1));
    formals.add("y", new IntArrayVector(2));
   
    FunctionCall body = FunctionCall.newCall(Symbol.get("+"), Symbol.get("x"), Symbol.get("y"));
   
    Closure closure = new Closure(topLevelContext.getGlobalEnvironment(), formals.build(), body);
   
    assertReRead(closure);
   
//    PairList.Builder list = new Builder();
//    list.add("renjin.f", closure);
View Full Code Here

TOP

Related Classes of org.renjin.sexp.PairList.Builder

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.