[R-sig-Geo] Problem with update gdistance 1.1-3
Bastien.Ferland-Raymond at mrn.gouv.qc.ca
Bastien.Ferland-Raymond at mrn.gouv.qc.ca
Thu Nov 29 19:31:32 CET 2012
Hello,
I want to expose a problem I am now facing with the gdistance package and the geoCorrection() function.
I have a code I haven't been using since March, and now, after updating R to 2.15.2 and the package gdistance to 1.1-3 from 1.1-2, the geoCorrection() function doesn't work. It simply runs forever without giving any result.
My code is fine, as I tested it with my old computer still running R 2.15.0 and gdistance 1.1-2 and it does the task in 15 seconds. The problem is really with the 1.1-3 version of gdistance.
## here a simple example of my code.
## download le Rdata: https://www.dropbox.com/s/mo51vgft3fsmm5y/transi.RDATA
load("transi.Rdata")
library(gdistance)
transi <- transition(ras,transitionFunction=max, directions=8,symm=T) transi <- geoCorrection(transi)
> sessionInfo()
R version 2.15.2 (2012-10-26)
Platform: i386-w64-mingw32/i386 (32-bit)
locale:
[1] LC_COLLATE=French_Canada.1252 LC_CTYPE=French_Canada.1252 [3] LC_MONETARY=French_Canada.1252 LC_NUMERIC=C [5] LC_TIME=French_Canada.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] gdistance_1.1-3 Matrix_1.0-9 lattice_0.20-10 igraph0_0.5.5-3
[5] raster_2.0-31 sp_1.0-2
loaded via a namespace (and not attached):
[1] grid_2.15.2 tools_2.15.2
##########
I've tried it on win XP and windows 7, 32 and 64 bits, still the same problem.
I would be happy if somebody could fix it.
Thanks
Bastien Ferland-Raymond, M.Sc. Stat., M.Sc. Biol.
Division des orientations et projets spéciaux
Direction des inventaires forestiers
Ministère des Ressources naturelles
More information about the R-sig-Geo
mailing list