0
我試圖安裝xlsx軟件包。安裝工作正常,但是當我加載庫我得到以下錯誤:錯誤:安裝xlsx時無法加載軟件包'rJava'
> require(xlsx)
Loading required package: xlsx
Loading required package: rJava
Error : .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.
In addition: Warning messages:
1: package ‘xlsx’ was built under R version 3.2.3
2: package ‘rJava’ was built under R version 3.2.3
Failed with error: ‘package ‘rJava’ could not be loaded’
我用Google搜索周圍,並說,安裝Java的正確版本可能是問題。但是,當我下載最新版本並開始新的r-session時,我仍然遇到同樣的問題。
有更多的人遇到這個問題嗎?一些快速修復?
Java安裝後啓動了嗎? – Antti
同時升級你的版本R. – 2016-02-12 12:13:01
確保你的版本與你的r版本相同。如果您使用64位R,請安裝64位java – phiver