New To R... Need Help

I installed the xlsx package on rstudio and when I went to run the line, library(xlsx), I got this error:

library(xlsx)
Error: package or namespace load failed for ‘xlsx’:
.onLoad failed in loadNamespace() for 'xlsx', details:
call: fun(libname, pkgname)
error: Your java version is 14. Need 1.5.0 or higher.

I should also note that I am on Mac (fart* I know) and my version of java is the most recent. Any ideas or help would be appreciated... I am very new to this. Thanks!

Are you sure this is the exact message? It doesn't says rJava instead?

yeah I copy and pasted :confused:

Then maybe only the latest LTS Java version is supported, try installing Java 11

Thanks I'll give it a go

If what you need is to read in excel files, you can also try out another package readxl, which does not depend on java.

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