Package org.renjin.sexp

Examples of org.renjin.sexp.IntVector


      throw new EvalException("It's not an AtomicVector", value.getTypeName());
    } else if(value.length() < 1) {
      //to keep its type info
      return new Integer[0];
    }
    IntVector lv= (IntVector)value;
    int length = lv.length();
    Integer[] values = new Integer[length];
    for(int i=0;i<length;i++){
      values[i]= lv.getElementAsObject(i);
    }
    return values;
  }
View Full Code Here


  @Test
  public void readTextGz() throws IOException {

    String path = getClass().getResource("/org/renjin/tobin.txt.gz").getFile();

    IntVector connHandle = Connections.file(topLevelContext, path, "rt", false, "UTF-8", false);

    assertThat(Connections.readChar(topLevelContext, connHandle, "durable".length(), false),
        equalTo("durable"));

  }
View Full Code Here

TOP

Related Classes of org.renjin.sexp.IntVector

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.