Error in ogrListLayers(dsn = dsn): Cannot open data source is reported when readOGR loads the shapefile

ReadOGR loading shape file Error in ogrListLayers(DSN = DSN) : Cannot open data source
The reason is that we only put SHP files in the working directory, but not the corresponding DBF and SHX files in the working directory, just put these files in the working directory.

Read More: