错误:无法加载软件包“ rJava”,但库(rJava)正在运行

时间:2019-03-15 14:02:49

标签: r mongodb

我有64位计算机,并且已经安装了jdk和jre(64位),并且R和R studio是64位的。我正在尝试通过以下方式安装“ rMongodb”软件包:

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

即使library(rJava)工作正常。 附言我已经设置了环境变量。

0 个答案:

没有答案