即使库(rJava)工作正常,安装'RMongo'时也会出现rJava错误

时间:2019-03-16 07:55:45

标签: r mongodb

  

install.packages(“ RMongo”)

不起作用(似乎已弃用。 因此,我试图使用devtools进行安装。

  

devtools :: install_github(“ tc / Rmongo”)

但是它给出了错误

  Error: package or namespace load failed for 'rJava':
 .onLoad failed in loadNamespace() for 'rJava', details:
  call: inDL(x, as.logical(local), as.logical(now), ...)
  error: unable to load shared object 'C:/Users/saini/OneDrive/Documents/R/win-library/3.5/rJava/libs/i386/rJava.dll':
  LoadLibrary failure:  %1 is not a valid Win32 application.

Error : package 'rJava' could not be loaded
Error: loading failed
Execution halted
*** arch - x64
Warning: package 'rJava' was built under R version 3.5.2
ERROR: loading failed for 'i386'
* removing 'C:/Users/saini/OneDrive/Documents/R/win-library/3.5/RMongo'
In R CMD INSTALL
Error in i.p(...) : 
  (converted from warning) installation of package ‘C:/Users/saini/AppData/Local/Temp/RtmpuEHfqO/file20f419985c01/RMongo_0.1.0.tar.gz’ had non-zero exit status

即使库(rJava)工作正常。 JDK,JRE均为64位。 R和R studio也是64位。 有人建议使用

  

R CMD javareconf

但它不能识别javareconf。

我还设置了环境变量。

enter image description here enter image description here enter image description here enter image description here enter image description here enter image description here

0 个答案:

没有答案