output from list.files:
"dhaka_div.shx" "dhaka_gazipur.cpg"
"dhaka_gazipur.dbf" "dhaka_gazipur.prj" "dhaka_gazipur.qpj"
"dhaka_gazipur.shp"
"dhaka_gazipur.shx" "dhaka.dbf" "dhaka.prj"
"dhaka.shp"
"dhaka.shx" "indicator.csv" "r_val.csv"
On Sat, Nov 9, 2019 at 5:07 PM Roger Bivand <Roger.Bivand at nhh.no> wrote:
On Fri, 8 Nov 2019, Abdoulaye Sarr wrote:
I am trying to read a shapefile using readOGR but keep getting error
messages:
map =
readOGR(dsn=path.expand("/Volumes/DS2S/R_QGIS_codes//Data"),"indicator")
Error in ogrInfo(dsn = dsn, layer = layer, encoding = encoding,
use_iconv, :
Cannot open layer
What is "/Volumes/DS2S/R_QGIS_codes//Data"? If a network drive, some OGR
drivers are known not to work with them (or that used to be the case).
Which OS/Platform is this? Is the repeated "//" correct? Can you see the
file running list.files("/Volumes/DS2S/R_QGIS_codes//Data") ?
Roger
What could be causing the problem? sp 1.3-2
Thanks
as
[[alternative HTML version deleted]]