[R-sig-Geo] Error at running TransitionFromRaster (gdistance)

Agustin Lobo alobolistas at gmail.com
Wed Nov 25 18:59:40 CET 2009


Hi!

I'm trying to run the example in the help page
of resistanceDistance but:
 > raster <- raster(nrows=18, ncols=36)
 > raster <- setValues(raster,rep(1,ncell(raster)))
 > tr <- TransitionFromRaster(raster,mean,4)
Error in checkSlotAssignment(object, name, value) :
   "bbox" is not a slot in class "Transition"
Calls: TransitionFromRaster ... initialize -> .local -> @<- -> slot<- -> 
checkSlotAssignment

I just installed from Rforge on R 2.10 (ubuntu 9.4)
Version: 1.0
Date: 2008-09-26

Maybe a mismatch between the version of raster and the one of gdistance?
(for raster:Version: 0.9.8-26
Date: 23-November-2009)

Thanks

Agus



More information about the R-sig-Geo mailing list