Hi,
I m trying to install r2excel from the kassambara github, but I get the following error. Can anyone help?
Installing package into ‘C:/Users/Theo/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
* installing *source* package 'r2excel' ...
** R
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
converting help for package 'r2excel'
finding HTML links ... done
getOS html
r2excel-package html
xlsx.addHeader html
xlsx.addHyperlink html
xlsx.addLineBreak html
xlsx.addParagraph html
xlsx.addPlot html
xlsx.addTable html
xlsx.openFile html
xlsx.readFile html
xlsx.writeFile html
xlsx.writeMultipleData html
** building package indices
** testing if installed package can be loaded
*** arch - i386
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
Error : package 'xlsx' could not be loaded
Error: loading failed
Execution halted
*** arch - x64
ERROR: loading failed for 'i386'
* removing 'C:/Users/Theo/Documents/R/win-library/3.5/r2excel'
In R CMD INSTALL
Error in i.p(...) :
(converted from warning) installation of package ‘C:/Users/Theo/AppData/Local/Temp/RtmpUJbkJy/file2dcc12f112b0/r2excel_1.0.0.tar.gz’ had non-zero exit status