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

> ### Name: lextrB
> ### Title: Find extreme eigenvalues of binary symmetric spatial weights
> ### Aliases: lextrB lextrW lextrS l_max
> ### Keywords: spatial
> 
> ### ** Examples
> 
> data(boston)
> ab.listb <- nb2listw(boston.soi, style="B")
> er <- range(eigenw(ab.listb))
> er
[1] -3.039465  5.306204
> res_1 <- lextrB(ab.listb)
> c(res_1)
 lambda_n  lambda_1 
-3.039374  5.306203 
> if (require(igraph)) {
+   B <- as(ab.listb, "symmetricMatrix")
+   n <- length(boston.soi)
+   f2 <- function(x, extra=NULL) {as.vector(B %*% x)}
+   ar1 <- arpack(f2, sym=TRUE, options=list(n=n, nev=1, ncv=8,
+     which="LA", maxiter=200))
+   print(ar1$values)
+   arn <- arpack(f2, sym=TRUE, options=list(n=n, nev=1, ncv=8,
+     which="SA", maxiter=200))
+   print(arn$values)
+ #  ar1 <- arpack(f2, sym=TRUE, options=list(n=n, nev=2, ncv=8,
+ #    which="BE", maxiter=300))
+ # "BE" gives: At line 558 of file dsaup2.f: Fortran runtime error: 
+ # Index '9' of dimension 1 of array 'bounds' above upper bound of 8
+ # "BE" 
+ #  print(ar1$values)
+ }
Loading required package: igraph

Attaching package: 'igraph'

The following objects are masked from 'package:stats':

    decompose, spectrum

The following object is masked from 'package:base':

    union

Note: method with signature 'Matrix#numLike' chosen for function '%*%',
 target signature 'dsTMatrix#numeric'.
 "TsparseMatrix#ANY" would also be valid
Note: method with signature 'sparseMatrix#matrix' chosen for function '%*%',
 target signature 'dsTMatrix#matrix'.
 "TsparseMatrix#ANY" would also be valid
[1] 5.306204
[1] -3.039465
> k5 <- knn2nb(knearneigh(boston.utm, k=5))
> c(l_max(nb2listw(k5, style="B")))
[1] 5
> max(Re(eigenw(nb2listw(k5, style="B"))))
[1] 5
> c(l_max(nb2listw(k5, style="C")))
[1] 1
> max(Re(eigenw(nb2listw(k5, style="C"))))
[1] 1
> ab.listw <- nb2listw(boston.soi, style="W")
> er <- range(eigenw(similar.listw(ab.listw)))
> er
[1] -0.9708644  1.0000000
> res_1 <- lextrW(ab.listw)
> c(res_1)
  lambda_n   lambda_1 
-0.9708644  0.9999991 
> if (require(igraph)) {
+   B <- as(similar.listw(ab.listw), "symmetricMatrix")
+   ar1 <- arpack(f2, sym=TRUE, options=list(n=n, nev=1, ncv=8,
+     which="LA", maxiter=400))
+   print(ar1$values)
+   arn <- arpack(f2, sym=TRUE, options=list(n=n, nev=1, ncv=8,
+     which="SA", maxiter=400))
+   print(arn$values)
+ #  ar1 <- arpack(f2, sym=TRUE, options=list(n=n, nev=2, ncv=8,
+ #    which="BE", maxiter=300))
+ # "BE" gives: At line 558 of file dsaup2.f: Fortran runtime error: 
+ # Index '9' of dimension 1 of array 'bounds' above upper bound of 8
+ #  print(ar1$values)
+ }
At line 409 of file dsaupd.f
Fortran runtime error: Actual string length is shorter than the declared one for dummy argument 'which' (0/2)