|
最近在学习R,但跟着书上例子练习的过程中,遇到了一个问题:当安装xlsx包后,使用library(xlsx)来载入时,控制台提示错误如下:
===============================================================
> library(xlsx)Loading required package: rJavaError : .onLoad failed in loadNamespace() for 'rJava', details: call: fun(libname, pkgname) error: JAVA_HOME cannot be determined from the RegistryError: package ‘rJava’ could not be loaded===============================================================不知是什么原因?有哪位大侠知道,帮忙解决下,谢谢了! 注:之前xlsx包是安装成功了的,提示如下:package ‘rJava’ successfully unpacked and MD5 sums checkedpackage ‘xlsxjars’ successfully unpacked and MD5 sums checkedpackage ‘xlsx’ successfully unpacked and MD5 sums checked |
|