[R] maptools no such file

Takatsugu Kobayashi tkobayas at indiana.edu
Sun Jan 27 20:03:40 CET 2008


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



More information about the R-help mailing list