[R] Error opening SHP file

Jim Lemon
Fri, 22 Jan 2016 01:38:28 -0000

Hi Amoy,
Another mystery question. I should have pursued parapsychology. That error
statement is usually followed by one noting that the file specified cannot
be found. Today's guess is that the R working directory:

getwd()

did not have a "maps" directory below it.

Jim


On Fri, Jan 22, 2016 at 11:39 AM, Amoy Yang via R-help <r-help at
r-project.org
> wrote:

>  Any advice for the following errors?
> state.map <- readShapeSpatial("maps/st24_d00.shp")
> Error in getinfo.shape(fn) : Error opening SHP file
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html