When I type require(xlsx) to load the xlsx package into R, the following messages are displayed:
> require(xlsx) Loading required package: xlsx Loading required package: xlsxjars Loading required package: rJava Error : .onLoad failed in loadNamespace() for 'rJava', details: call: fun(libname, pkgname) error: JAVA_HOME cannot be determined from the Registry Failed with error: 'package 'rJava' could not be loaded'
I also tried downloading the rJava package manually, but received this error message:
require(rJava) 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.
Do you have any suggestion on how to solve the problem?
r rjava
Pritam Kar Jun 29 '13 at 5:15 2013-06-29 05:15
source share