I'm still a newbie when it comes to programming in general, so when I came across this error message when installing the package "xlsx".
I'm completely lost here, I've tried going to the Java website to download the latest version but that didn't help as far as I could tell.
I'm terrible at solving programming issues, but I need this for work. I'm running R Studio version 1.2.5033 and the base R version 3.6.2
** package 'xlsx' successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Error: .onLoad failed in loadNamespace() for 'rJava', details:
call: fun(libname, pkgname)
error: JAVA_HOME cannot be determined from the Registry
Execution halted
ERROR: lazy loading failed for package 'xlsx'
* removing 'C:/Users/User/Documents/R/win-library/3.6/xlsx'
Warning in install.packages :
installation of package ‘xlsx’ had non-zero exit status"```