First time using read.xlsx

299 views
Skip to first unread message

michell.pa...@gmail.com

unread,
Aug 7, 2018, 9:15:07 PM8/7/18
to R-package-xlsx
Hi,

I am a begginer in R and I want to know what to do in order to download the xlsx package and use the function read.xlsx. Every time I write library(xlsx), the answer I get is 

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

I need your help please.

Bernard Vallageas

unread,
Nov 30, 2021, 6:36:45 AM11/30/21
to R-package-xlsx

install.packages("xlsx")

library(xlsx)

Florent D.

unread,
Nov 30, 2021, 1:19:35 PM11/30/21
to r-packa...@googlegroups.com
The xlsx package imports the rJava package, which requires Java be installed (not an R package) on your computer. The error message suggests Java is missing on your machine. This page 
http://www.rforge.net/rJava/index.html says to install JDK 1.4 or higher. It’s something you can google and install yourself on your computer. Then you probably won’t need to reinstall the R packages.

--
You received this message because you are subscribed to the Google Groups "R-package-xlsx" group.
To unsubscribe from this group and stop receiving emails from it, send an email to r-package-xls...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/r-package-xlsx/acd43a42-6630-404e-ad08-174a416d037fn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages