0

我正在使用 RCaller 在 java 中执行我的 R 命令

        Caller caller = new RCaller();
        RCode code = new RCode();
        caller.setRscriptExecutable("C:\\Program Files\\R\\R-3.2.2\\bin\\Rscript");
        caller.cleanRCode();            
        String command = "XYZ R ccommand";
        code.addRCode(command);
        caller.setRCode(code);  
        caller.runAndReturnResult("b"); //This should output the value of b

caller.setRCode(code); 是它给出错误的地方,eclipse建议addRcode,同时这样做,再次出错。

我在 win7 64x 上使用 R3.2.2

在 git https://github.com/jbytecode/rcaller/blob/master/RCaller/src/main/java/examples/Example2.java上,此方法已定义,但在同一 cmd 行上引发错误。

4

0 回答 0