我已经设法将 StatET 安装到 Eclipse 中,并且我有一个名为“Test”的 Java 项目,其中包含一些代码。我希望能够在该项目文件夹中保留一个 .R 文件并将其作为独立的 R 脚本运行,与 Java 程序分开。我怎样才能做到这一点?如果我尝试突出显示 .R 文件中的某些 R 代码并运行它,它会显示“当前工作台窗口中没有 R 会话处于活动状态”。
更新:我添加了一个运行配置,当我尝试运行 R 脚本时,我现在在弹出框中出现以下错误:
Launching the R Console was cancelled, because it seems starting the R engine failed.
Please make sure that R package 'rj' (1.0.0 or compatible) is installed and that the R library paths are set correctly for the R environment configuration 'R'