I am trying to load my point shape file to R. I searched for hours and found
there are two ways, one is read.shape and the other one is readOGR. I tried
both but but can't do it successfully. Any help is appreciate.

> x <- read.shape(system.file("test.shp", package="maptools")[1])
Error in getinfo.shape(filen) : Error opening SHP file
In addition: Warning message:
use readShapeSpatial:
objects other than Spatial objects defined in the sp package are deprecated


> install.packages('rgdal')
> self<-readOGR(".","test")
Error: could not find function "readOGR"

	[[alternative HTML version deleted]]

