Please assist, I am trying to use xlsx, and I encountered the following upon installation and library submission. I believe xlsx installed properly, but it fells with I submit library(xlsx). See below.
> install.packages('xlsx')
Installing package into ‘C:/Users/Owner/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
also installing the dependencies ‘rJava’, ‘xlsxjars’
Content type 'application/zip' length 826966 bytes (807 KB)
downloaded 807 KB
Content type 'application/zip' length 9485447 bytes (9.0 MB)
downloaded 9.0 MB
Content type 'application/zip' length 458723 bytes (447 KB)
downloaded 447 KB
package ‘rJava’ successfully unpacked and MD5 sums checked
package ‘xlsxjars’ successfully unpacked and MD5 sums checked
package ‘xlsx’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\Owner\AppData\Local\Temp\RtmpmIZsd2\downloaded_packages
> library(xlsx)
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
> library("xlsx", lib.loc="~/R/win-library/3.5")
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
>