Problem faced in reading an xlsx file in R

187 Views Asked by At

I am currently using R on a Windows 10 laptop.

I have downloaded an xlsx file in the working directory. After loading the xlsx package, whenever I am trying to read the file using the read.xlsx, it is showing me this error :

Error in .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl, : java.lang.IllegalArgumentException: Your InputStream was neither an OLE2 stream, nor an OOXML stream

What can I try to resolve this?

0

There are 0 best solutions below