I am trying to unzip a shapefile zip file. After download it to my directory, I am getting this error and file is NOT unziped:
Warning message:
In unzip(zipfile = temp, exdir = temp2) : error 1 in extracting from zip file
R code:
dir <- getwd()
dir
zip.combine <- as.character(paste(dir, zip.file, sep = "/"))
zip.combine
The issue with your code is that the actual download link for your shp file is: https://github.com/silpai/DC_HarvardX/raw/master/shp/lpr_000a16a_e.zip. If you use it in your code, the right file will be downloaded and you will be able to unzip it. I got the link by right clicking on the "Download" button and then copying the link address.
On a different note, you would greatly benefit from using RStudio projects as well as the here package in your work.