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(コード); エラーが発生する場所です。EclipseはaddRcodeを提案しますが、そうしている間、再びエラーが発生します。

win7 64xでR3.2.2を使用しています

git https://github.com/jbytecode/rcaller/blob/master/RCaller/src/main/java/examples/Example2.javaでは、このメソッドが定義されていますが、同じコマンド行でエラーがスローされます。

4

0 に答える 0