[R] maptools no such file

pieterprovoost at gmail.com pieterprovoost at gmail.com
Sun Jan 27 19:29:22 CET 2008


Hello,

I'm having problems reading a shapefile with read.shape (maptools). I'm absolutely sure my file is there, but I get "no such file". The wd is ok, since read.table for example does find the file.

> getwd()
[1] "D:/somedirectory/R scripts"
> read.table("cities.shp")
Error in read.table("cities.shp") : empty beginning of file
In addition: Warning message:
In read.table("cities.shp") :
  incomplete final line found by readTableHeader on 'cities.shp'
> read.shape("cities.shp")
Error in getinfo.shape(filen) : No such file

Any thoughts?

Thanks
Pieter

--
This message was sent on behalf of pieterprovoost at gmail.com at openSubscriber.com
http://www.opensubscriber.com/messages/r-help@r-project.org/topic.html



More information about the R-help mailing list