Skip to content
Prev 139270 / 398506 Next

Error opening SHP file (maptools)

Don MacQueen <macq <at> llnl.gov> writes:
You may also - for safety's sake - say:

list.files(path="C:/path_to_my_file", pattern="filename")

to make sure that at least the minimum three files that make up a 
"shapefile" are present: filename.dbf, filename.shp, and filename.shx. 
Note that in Windows you can also use the file chooser, by saying:

readShapePoints(file.choose())

which will let you navigate to, and "see" the file name for yourself.

Roger

PS. As Paul mentioned, the R-sig-geo list is well suited to this 
kind of question.