Hello,
I am using the following code to download an xlsx file from a website:
fileUrl <- "https://data.baltimorecity.gov/api/views/dz54-2aru/rows.xlsx?accessType=DOWNLOAD"
download.file(fileUrl1,destfile = "./getting_cleaning/cameras.xlsx")
After this when I am trying to read the file using
camera_data <- read.xlsx("./getting_cleaning/cameras.xlsx",sheetIndex = 1,header = TRUE)
I am getting the error:
Error in .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl, :
java.util.zip.ZipException: invalid entry size (expected 500 but got 504 bytes)
Can someone please help me with this!!