Examples of StringArrayVector


Examples of org.renjin.sexp.StringArrayVector

  public VectorPipeliner getVectorEngine() {
    return vectorPipeliner;
  }
 
  public void setCommandLineArguments(String executableName, String... arguments) {
    commandLineArguments = new StringArrayVector(Lists.asList(executableName, arguments));
  }
View Full Code Here

Examples of org.renjin.sexp.StringArrayVector

  private static int valueOfHexDigit(char hex) {
    return Character.digit(hex, 16);
  }

  public SEXP toExp() {
    return new StringArrayVector(toString());
  }
View Full Code Here

Examples of org.renjin.sexp.StringArrayVector

public class Options {
  private Map<String, SEXP> map;

  public Options() {
    map = Maps.newHashMap();
    map.put("prompt", new StringArrayVector("> "));
    map.put("continue", new StringArrayVector("+ "));
    map.put("expressions" , new IntArrayVector(5000));
    map.put("width", new IntArrayVector(80));
    map.put("digits", new IntArrayVector(7));
    map.put("echo", new LogicalArrayVector(false));
    map.put("verbose", new LogicalArrayVector(false));
    map.put("check.bounds", new LogicalArrayVector(false));
    map.put("keep.source", new LogicalArrayVector(true));
    map.put("keep.source.pkgs", new LogicalArrayVector(false));
    map.put("warnings.length", new IntArrayVector(1000));
    map.put("OutDec", new StringArrayVector("."));
  }
View Full Code Here

Examples of org.renjin.sexp.StringArrayVector

     // Argument Recyling
    assertThat( eval("sprintf(c('a%d', 'b%d'), c(1,2,3,4))"), equalTo( c("a1", "b2", "a3", "b4")));

    // empty list
    assertThat( eval("sprintf('%s', c())"), equalTo( (SEXP)new StringArrayVector()));
  }
View Full Code Here

Examples of org.renjin.sexp.StringArrayVector

 
  public EvalException(String message, Throwable t) {
    super(message, t);
    ListVector.NamedBuilder condition = ListVector.newNamedBuilder();
    condition.add("message", this.getMessage());
    condition.setAttribute(Symbols.CLASS, new StringArrayVector("condition", "error", "simpleError"));
    this.condition = condition.build();
  }
View Full Code Here

Examples of org.renjin.sexp.StringArrayVector

  public static void main(String[] args) throws IOException, ScriptException {
 
    ScriptEngineManager factory = new ScriptEngineManager();
    ScriptEngine engine = factory.getEngineByName("Renjin");

    engine.put("benchmarkArgs", new StringArrayVector(args));

    engine.eval(new InputStreamReader(new FileInputStream("src/main/R/runner.R")));
  }
View Full Code Here

Examples of org.renjin.sexp.StringArrayVector

      }
      return this;
    }
   
    public DoubleVector buildDoubleVector() {
      vector.setAttribute(Symbols.CLASS, new StringArrayVector("POSIXct", "POSIXt"));
      return vector.build();
    }
View Full Code Here

Examples of org.renjin.sexp.StringArrayVector

    attributes.set("term.labels", formula.buildTermLabels());
    attributes.set("order", new IntArrayVector());
    attributes.set("intercept", formula.buildInterceptAttribute());
    attributes.set("response",  formula.buildResponseAttribute());
    attributes.set(".Environment", context.getGlobalEnvironment() );
    attributes.set("class", new StringArrayVector("terms", "formula"));
   
    if(specials != Null.INSTANCE) {
      attributes.set("specials", buildSpecials((AtomicVector)specials));
    }
   
View Full Code Here

Examples of org.renjin.sexp.StringArrayVector

        ss = "(" + dotnames.getElementAsString(i) + ")";
        data.add(dots.getElementAsSEXP(i));
        names.add(ss);
        j++;
    }
    attributes.setNames(new StringArrayVector(names));

    /* Sanity checks to ensure that the the answer can become */
    /* a data frame.  Be deeply suspicious here! */

    nc = data.size();
View Full Code Here

Examples of org.renjin.sexp.StringArrayVector

    return clazz.isArray() && clazz.getComponentType() == String.class;
  }
 
  @Override
  public SEXP convertToR(String[] value) {
    return new StringArrayVector(value);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.