I am trying to execute the readOGR function for a shapefile but it is taking way too long to process and I end up killing the process after 20mins or so. Following is the code:
country <- readOGR('shapeFiles','gadm28', encoding = 'UTF-8')
The execution hangs after printing the following lines:
OGR data source with driver: ESRI Shapefile
Source: "shapeFiles", layer: "gadm28"
with 255272 features
It has 61 fields
I am working on Windows 7 with 8GB RAM, using RStudio. Any suggestions on what I could change to get it running quick?