Problem loading xlsx libarary

I have just started learning R programming on my own for my PhD work. I really need to use xlsx library for doing computations but whenever I tried loading the library I got the error message as

Error: package or namespace load failed for ‘xlsx’:
.onLoad failed in loadNamespace() for 'rJava', details:
call: fun(libname, pkgname)
error: JAVA_HOME cannot be determined from the Registry

I installed the latest version of JAVA. I also reinstalled rJAVA. but still it is showing the same thing. I am very new to programming and I really need to learn it. Can you please help me with the problem.

Java dependencies can be a real pain.

You should be able to use packages such as openxlsx or readxl as alternatives that do not depend on Java.

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.