Windows 8、JRE 7、RCaller 2.4、および R-3.0.2 で実行されている Eclipse の例を試しています。R-3.1.1も読みました。しかし、プロットが生成されると、空のように見え、例外やエラーは表示されません。生成されたプロットを調べたところ、サイズは 0 kb でした。
Mac OS で同じコードを試してみたところ、すべてが完璧でした...
コード:
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);