Thank you all for your quick responses,
The problem was that rgeos was not properly installed on the linux machine.

Cheers


On Wed, Apr 24, 2013 at 2:08 AM, Edzer Pebesma <
edzer.pebesma@uni-muenster.de> wrote:

> You don't provide a reproducible example, so we can only guess.
>
> The error message indicates an over() method provided by rgeos was
> needed. Was rgeos loaded in both cases?
>
> On 04/24/2013 01:14 AM, kapo coulibaly wrote:
> > I'm running the following script:
> >
> > # Reading shapefiles
> > grd.shp<-openshape()
> > reaches.shp<-openshape()
> > grd.shp->grd2.shp
> >
> > # Creating a subset of the grid around the reaches exttent
> > sub.ind<-over(grd.shp,reaches.shp)
> >
> > In linux slackware 13.37 x64 running R-2.15.2 I get the error:
> >
> > Error in function (classes, fdef, mtable)  :
> >   unable to find an inherited method for function "over", for
> > signature "SpatialPolygonsDataFrame", "SpatialLinesDataFrame"
> >
> >
> > But in windows 7 x64 with R-2.15.1 it works flawlessly
> >
> > Thanks
> >
> >       [[alternative HTML version deleted]]
> >
> > _______________________________________________
> > R-sig-Geo mailing list
> > R-sig-Geo@r-project.org
> > https://stat.ethz.ch/mailman/listinfo/r-sig-geo
> >
>
> --
> Edzer Pebesma
> Institute for Geoinformatics (ifgi), University of Münster
> Weseler Straße 253, 48151 Münster, Germany. Phone: +49 251
> 8333081, Fax: +49 251 8339763  http://ifgi.uni-muenster.de
> http://www.52north.org/geostatistics      e.pebesma@wwu.de
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>

	[[alternative HTML version deleted]]

