When I type require(xlsx) in order to load the package xlsx in R, the following messages is shown:
> 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've also tried to load the rJava package manually but got 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?
rJava...Read thisreadxlpackage. More discussion about here - cannot install libraryxlsx in r and look for an alternative