不确定为什么xlsx包没有加载到R(它已经安装和下载没有任何错误)。
install.packages("xlsx")
library(xlsx)
Loading required package: rJava
Error: package or namespace load failed for ‘rJava’:
.onLoad failed in loadNamespace() for 'rJava', details:
call: fun(libname, pkgname)
error: JAVA_HOME cannot be determined from the Registry
Error: package ‘rJava’ could not be loaded
In addition: Warning message:
package ‘xlsx’ was built under R version 3.4.3
请协助