Running examples in 'gdistance-Ex.R' failed
The error most likely occurred in:

> ### Name: pathInc
> ### Title: Incidence of paths from a common origin: overlap and non-overlap
> ### Aliases: pathInc
> ###   pathInc,TransitionLayer,Coords,Coords,missing,missing,missing-method
> ###   pathInc,TransitionLayer,Coords,Coords,missing,numeric,missing-method
> ###   pathInc,TransitionLayer,Coords,Coords,missing,missing,Transition-method
> ###   pathInc,TransitionLayer,Coords,Coords,missing,numeric,Transition-method
> ###   pathInc,TransitionLayer,Coords,Coords,Coords,missing,missing-method
> ###   pathInc,TransitionLayer,Coords,Coords,Coords,numeric,missing-method
> ###   pathInc,TransitionLayer,Coords,Coords,Coords,missing,Transition-method
> ###   pathInc,TransitionLayer,Coords,Coords,Coords,numeric,Transition-method
> ### Keywords: spatial
> 
> ### ** Examples
> 
> library("raster")
> library("sp")
> 
> # Create TransitionLayer
> r <- raster(ncol=36,nrow=18)
> r <- setValues(r,rep(1,times=ncell(r)))
> tr <- transition(r,mean,directions=4)
> 
> # Two different types of correction are required
> trR <- geoCorrection(tr, type="r", multpl=FALSE)
> trC <- geoCorrection(tr, type="c", multpl=FALSE)
> 
> # Create TransitionStack
> ts <- stack(trR, trR)
> 
> # Points for origin and coordinates between which to calculate path (non)overlaps
> sP0 <- SpatialPoints(cbind(0,0))
> sP1 <- SpatialPoints(cbind(c(65,5,-65),c(-55,35,-35)))
> 
> # Randomised shortest paths
> # rescaling is needed: exp(-theta * trC) should give reasonable values
> # divide by median of the non-zero values
> trC <- trC / median(transitionMatrix(trC)@x)
> pathInc(trC, origin=sP0, from=sP1, theta=2)
$function1layer1
            1           2
2 0.009152689            
3 0.690511868 0.008950098

$function2layer1
         1        2
2 13.37958         
3 16.94227 13.33754

> 
> # Random walk
> pathInc(trR, origin=sP0, from=sP1)
$function1layer1
         1        2
2 19864845         
3 27837551 19721595

$function2layer1
         1        2
2 36590892         
3 34131717 34685800

> 
> # TransitionStack as weights
> pathInc(trR, origin=sP0, from=sP1, weight=ts)
Error in Cholesky(Lr) : 
  Cholmod error 'out of memory' at file ../Core/cholmod_memory.c, line 146
Calls: pathInc ... pathInc -> .local -> .randomWalk -> Cholesky -> Cholesky
Execution halted