安装rjava时出错(因为未指定‘;lib’;)

安装rjava时出错(因为未指定‘;lib’;),r,rjava,R,Rjava,我正在64位机器上安装rJava,运行Windows 7,遇到了最奇怪的消息。下面是日志。以前有人见过这个吗?提前谢谢 install.packages("rJava") Installing package into ‘C:/Users/laila.rothe/Documents/R/win-library/3.2’ (as ‘lib’ is unspecified) trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.2/rJa

我正在64位机器上安装rJava,运行Windows 7,遇到了最奇怪的消息。下面是日志。以前有人见过这个吗?提前谢谢

install.packages("rJava")
Installing package into ‘C:/Users/laila.rothe/Documents/R/win-library/3.2’
(as ‘lib’ is unspecified)
trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.2/rJava_0.9-6.zip'
Content type 'application/zip' length 761928 bytes (744 KB)
downloaded 744 KB
package ‘rJava’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\laila.rothe\AppData\Local\Temp\RtmpmcecQy\downloaded_packages
library(rJava)
Error : .onLoad failed in loadNamespace() for 'rJava', details:
call: inDL(x, as.logical(local), as.logical(now), ...)
error: unable to load shared object 'C:/Users/laila.rothe/Documents
R/win-library/3.2/rJava/libs/x64/rJava.dll':
LoadLibrary failure:  The specified module could not be found.
Error: package or namespace load failed for ‘rJava’

你们可能会在这里找到答案——我有一个类似的问题,这是因为rJava正在寻找x32 Java,而我的系统是64位的。转到,然后尝试重新安装。我不需要手动改变路径变量。