Monday, June 16, 2014

RCaller 2.4 has just been released

Rcaller turtle The key properties of this release:
  • Added deleteTempFiles() method in class RCaller for deleting temporary files that are created by RCaller at any time. 
  • runiversal.r is now more compact
  • StopRCallerOnline() method in class RCaller now stops the R instances in the memory which are created in runAndReturnResultOnline(). Click to see the example for RCaller.stopRCallerOnline() method.
The next release 2.5 will be submitted in 15th July 2014.


Get informed using the formal blog http://stdioe.blogspot.com.tr/search/label/rcaller

 Download page: https://drive.google.com/?authuser=0#folders/0B-sn_YiTiFLGZUt6d3gteVdjTGM

 Source code: https://code.google.com/p/rcaller/

 Home page: http://mhsatman.com/tag/rcaller/

 Journal Documentation: http://www.sciencedomain.org/abstract.php?iid=550&id=6&aid=4838#.U59D8_mSy1Y

7 comments:

  1. Where to find release versions in general and for 2.1.1 in special? https://code.google.com/p/rcaller/downloads and https://drive.google.com/?authuser=0#folders/0B-sn_YiTiFLGZUt6d3gteVdjTGM only provide -SNAPSHOT versions. I could install -SNAPSHOT as release version, but it's really hard to do things bad on purpose ;), so maybe I ask before...

    ReplyDelete
  2. Hi Karl, SNAPSHOT versions are release versions by default.

    ReplyDelete
  3. Dear sirs,

    I used RCaller to get the result from R. However, It seems RCaller cannot handle non-English character. For example, the code below works perfectly.

    code.addRCode("a<-\"abc\"");
    caller.setRCode(code);

    caller.runAndReturnResult("a");
    String[] x1 = caller.getParser().getAsStringArray("a");
    System.out.println("title: "+Arrays.toString(x1));
    System.out.println("Done");

    However, if I change the code a litte bit:
    code.addRCode("a<-\"ンスのバイト1\"");
    Then I get this error:

    Exception in thread "main" rcaller.exception.ParseException: Can not handle R results due to : rcaller.exception.XMLParseException: Can not parse the R output: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: 1バイトのUTF-8シーケンスのバイト1が無効です。

    So I guess the bug related to character encoding. Is there any help for this issue? Thanks in advance.

    Bests,

    ReplyDelete
  4. This comment has been removed by the author.

    ReplyDelete
  5. I'm trying an example in eclipse running on windows 8, JRE 7, RCaller 2.4 and R-3.0.2. I also ried R-3.1.1. But when the plot is generated it appears empty, and it shows no exceptions or errors. When I looked up the generated plot it has a size of 0 kb.

    Code:

    RCaller caller = new RCaller();
    caller.setRscriptExecutable("C:\\Programme\\R\\R-3.0.2\\bin\\Rscript.exe");

    RCode code = new RCode();
    code.clear();

    // double[] numbers = new double[]{1, 4, 3, 5, 6, 10};
    //
    // code.addDoubleArray("x", numbers);
    File file;
    file = code.startPlot();
    System.out.println("Plot will be saved to : " + file);
    code.addRCode("x<-c(1,4,3,5,6,10)");
    code.addRCode("plot(x)");
    code.endPlot();

    caller.setRCode(code);
    caller.runOnly();
    code.showPlot(file);

    ReplyDelete
  6. I tried the same code on my mac-os and everything was perfect as it should...

    ReplyDelete
  7. Hi there, I tried on my win8.1 and can plot the graphs. However, if I called the ggplot2 (version 1.0.0), there is empty graph...
    Could you please let me know how to fix it? thanks

    ReplyDelete

Thanks