R:安装包的错误信息,如何绕过它?

时间:2017-09-22 19:00:53

标签: r

我在安装XLConnect for R时遇到错误,这是我收到的错误消息:

> install.packages("XLConnect")
Installing package into ‘C:/Users/a_garcia_de_paredes/Documents/R/win-library/3.4’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/XLConnect_0.2-13.zip'
Content type 'application/zip' length 9633752 bytes (9.2 MB)
downloaded 9.2 MB

package ‘XLConnect’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
    C:\Users\a_garcia_de_paredes\AppData\Local\Temp\RtmpKA18my\downloaded_packages
> library("XLConnect")
Loading required package: XLConnectJars
Error: package or namespace load failed for ‘XLConnectJars’:
 .onLoad failed in loadNamespace() for 'rJava', details:
  call: fun(libname, pkgname)
  error: JAVA_HOME cannot be determined from the Registry
Error: package ‘XLConnectJars’ could not be loaded

有没有办法绕过它?

0 个答案:

没有答案