I need to use the package "xlsx" to export some data on R to excel, but that package requires rJava to run. Whenever I use library(rJava)
to call rJava, I get the following error:
Error:.onLoad failed in loadNamespace() for 'rJava', details:
call: fun(libname, pkgname)
error: JAVA_HOME cannot be determined from the Registry
Error: package 'rJava' could not be loaded
I honestly cannot make heads or tails of it. What can I do to fix it?