cant下载xlsx或rjavar包

n7taea2i  于 2021-07-12  发布在  Java
关注(0)|答案(0)|浏览(243)

我正在下载 xlsx 在r中打包,但收到以下错误消息:

Error: package or namespace load failed for 'xlsx':
 .onLoad failed in loadNamespace() for 'rJava', details:
  call: fun(libname, pkgname)
  error: No CurrentVersion entry in Software/JavaSoft registry! Try re-installing Java and make sure R and Java have matching architectures.
Error: loading failed
Execution halted

***arch - x64

ERROR: loading failed for 'i386'

* removing 'C:/Users/X/Documents/R/win-library/3.6/xlsx'

Warning in install.packages :
  installation of package ‘xlsx’ had non-zero exit status

我也试过下载 rjava ,但得到以下错误消息:

ERROR*> JavaSoft\{JRE|JDK} can't open registry keys.
ERROR: cannot find Java Development Kit.
       Please set JAVA_HOME to specify its location manually
ERROR: configuration failed for package 'rJava'

* removing 'C:/Users/X/Documents/R/win-library/3.6/rJava'
* restoring previous 'C:/Users/X/Documents/R/win-library/3.6/rJava'

Warning in install.packages :
  installation of package ‘rJava’ had non-zero exit status

我已经将java重新安装到我的计算机上,采用与s my computer和r(64位)相同的体系结构,大多数在线帮助都说我应该试试。有人经历过同样的问题吗?

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题