can you open your shapefile using reaPolyShape in sp?
pieterprovoost at gmail.com wrote:> 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 at r-project.org/topic.html
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>