3
I need to write files that are in xlsx format, a package option that does this is xlsx, but when I went to install it appeared the following error:
require(xlsx)
Carregando pacotes exigidos: xlsx
Error: package or namespace load failed for ‘xlsx’:
.onLoad falhou em loadNamespace() para 'rJava', detalhes:
chamada: fun(libname, pkgname)
erro: JAVA_HOME cannot be determined from the Registry
Warning message:
package ‘xlsx’ was built under R version 3.4.4
How do I arrange it and get the package installed?
Try:
install.packages('rJava')andinstall.packages('xlsx')– neves
Hello, thank you so much for your help, but it didn’t work out, the same mistake is appearing
– Pesquisador008
Please copy your sessionInfo(). It may be incompatibility between your Java and R architecture (one in 32 bit and the other in 64 bit). My recommendation is to leave the
xlsxthat uses Java and go to packagesreadxl, to read, andwritexl, to write.– Tomás Barcellos