WinXP下面实现JAVA对R调用 (rJava包设置)

http://f.dataguru.cn/thread-14885-1-1.html

我安装成功,总结一下
system:xp+R+jdk
R:
C:\Program Files\R\R-2.15.1
JDK:
C:\Program Files\Java\jdk1.7.0_05

1.配置好java
2.配置rJava

1)install.packages("rJava")
2)设置环境变量
CLASSPATH=C:\Program Files\R\R-2.15.1\library\rJava\jri;
PATH=C:\Program Files\R\R-2.15.1\bin\i386
R_HOME=C:\Program Files\R\R-2.15.1
3)C:\Program Files\R\R-2.15.1\library\rJava\jri的3个类包, 复制黏贴,
放到C:\Program Files\Java\jdk1.7.0_05\lib下面
JRIEngine.jar
JRI.jar
REngine.jar

你可能感兴趣的:(java)