Error installing xlsx package

Question:

I need to record files that are in xlsx format, a package option that does this is xlsx, but when I went to install the following error appeared:

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 fix this and get the package installed?

Answer:

Hi,

I had the same problem as yours some time ago. My solution was to change the package. I currently use the package

installing

install.packages("readxl")

loading the package

library(readxl)

He is very good; even to open the sheet file you want he can

Here is the link to the documentation site:

https://readxl.tidyverse.org/

Scroll to Top