Re: [R] maptools no such file

From: Takatsugu Kobayashi <tkobayas_at_indiana.edu>
Date: Sun, 27 Jan 2008 14:03:40 -0500

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@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.
>



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. Received on Sun 27 Jan 2008 - 19:09:50 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 27 Jan 2008 - 23:30:08 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive