我遇到了同样的情况,但可以手动解决。
- 按照相同的指南http://r-interface.blogspot.com.es/2012/04/install-r-jgr-and-deducer-in-ubuntu.html直到第 4 点
在第 4 点中,R 启动 ( sudo R --no-save
)
library(JGR)
JGR()
请注意,它会在屏幕上打印 bash 脚本的内容。类似的东西(但使用你的):
#!/bin/sh
export R_HOME="/usr/lib/R"
export R_ARCH=""
export R_LIBS="/home/jesus/R/x86_64-pc-linux-gnu-library/3.0:/usr/local/lib/R/site-library:/usr/lib/R/site-library:/usr/lib/R/library"
export R_LIBS_USER="~/R/x86_64-pc-linux-gnu-library/3.0"
export JAVA_LD_PATH="/usr/lib/R/lib:/usr/lib/x86_64-linux-gnu:/usr/lib/jvm/java-7-oracle/jre/lib/amd64/server:@JAVA_LD@"
'/usr/lib/jvm/java-7-oracle/jre/bin/java' -cp '/home/jesus/R/x86_64-pc-linux-gnu-library/3.0/rJava/java/boot' -Drjava.class.path='/home/jesus/R/x86_64-pc-linux-gnu-library/3.0/rJava/jri/JRI.jar:/home/jesus/R/x86_64-pc-linux-gnu-library/3.0/iplots/java/iplots.jar:/home/jesus/R/x86_64-pc-linux-gnu-library/3.0/JGR/java/JGR.jar:/usr/lib/R/etc/classes:/usr/lib/R/etc/classes/classes.jar' -Drjava.path='/home/jesus/R/x86_64-pc-linux-gnu-library/3.0/rJava' -Dmain.class=org.rosuda.JGR.JGR -Djgr.load.pkgs=yes -Dr.arch= RJavaClassLoader
您只需/usr/local/lib/R/site-library/JGR/scripts/run
使用上一步中的内容创建丢失的文件(使用与指南中相同的名称,或随意调整)。
使其可执行:
chmod a+x /usr/local/lib/R/site-library/JGR/scripts/run
- 继续您离开步骤 4 的指南