Reputation: 1
Every time I enter this line
cameradata <- read.xlsx("./data/cameras.xlsx" , 1)
I get error:
Error in .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl, : java.util.zip.ZipException: invalid entry size (expected 500 but got 502 bytes)
I have tried to clear RAM but file size is 10kp
Upvotes: 0
Views: 2498
Reputation: 359
I had experience exactly the same issue. What I did to resolve the problem was:
In conclusion it seems that "R" had corrupted XLSX file during the download - which might be caused by a BUG inside of current version of the language.
Upvotes: 0
Reputation: 93
Try this :- May be this can work. It worked for me
1) when downloading the xlsx file, use this download.file(fileURL, destfile="./whatever", mode="wb")
2) Switched to regular R, not R Studio,
Upvotes: 2
Reputation: 1
The xlsx file you are trying to read maybe damaged. Try redownload the file or read another "healthy" xlsx file.
Upvotes: 0