I can´t install XLConnect and rJava

Hello, I can´t install packages XLConnect and rJava in Windows 10. In R 4.4.0 and Rstudio.

install.packages("XLConnect")
Installing package into ‘C:/Users/adria/AppData/Local/R/win-library/4.4’
(as ‘lib’ is unspecified)
probando la URL 'http://cran.at.r-project.org/bin/windows/contrib/4.4/XLConnect_1.1.0.zip'
Content type 'application/zip' length 23803149 bytes (22.7 MB)
downloaded 22.7 MB

package ‘XLConnect’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
C:\Users\adria\AppData\Local\Temp\RtmpWkULkj\downloaded_packages

library("XLConnect")
Error: package or namespace load failed for ‘XLConnect’:
.onLoad falló en loadNamespace() para 'rJava', detalles:
llamada: fun(libname, pkgname)
error: No CurrentVersion entry in Software/JavaSoft registry! Try re-installing Java and make sure R and Java have matching architectures.
Además: Aviso:
package ‘XLConnect’ was built under R version 4.4.1

install.packages("rJava")
Installing package into ‘C:/Users/adria/AppData/Local/R/win-library/4.4’
(as ‘lib’ is unspecified)
probando la URL 'http://cran.at.r-project.org/bin/windows/contrib/4.4/rJava_1.0-11.zip'
Content type 'application/zip' length 835913 bytes (816 KB)
downloaded 816 KB

package ‘rJava’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
C:\Users\adria\AppData\Local\Temp\RtmpWkULkj\downloaded_packages

library("rJava")
Error: package or namespace load failed for ‘rJava’:
.onLoad falló en loadNamespace() para 'rJava', detalles:
llamada: fun(libname, pkgname)
error: No CurrentVersion entry in Software/JavaSoft registry! Try re-installing Java and make sure R and Java have matching architectures.

Hi @ATroyelli ,

this article sums it up error: No CurrentVersion entry in Software/JavaSoft registry! | R-bloggers. There is a mismatch between the architecture of java and R.

Hi @vedoa,

Thanks for your reply. I cant solve by your indications but Ive solve run the package script line by line and it works!. So weird!.

Thanks

Adrian

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.