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

> ### Name: LOE
> ### Title: LOE for a unweighted Graph.
> ### Aliases: LOE
> 
> ### ** Examples
> 
> #################
> #Realizable case#
> #################
> library(igraph)

Attaching package: 'igraph'

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

    decompose, spectrum

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

    union

> ###############################
> #Create a toy data
> x <- seq(-5,5,by=1)
> y <- seq(1,6,by=1)
> hx1 <- seq(-3.5,-1.5,by=0.5)
> hx2 <- seq(1.5,3.5,by=0.5)
> hy <- seq(2.5,4.5,by=0.5)
> D1 <- matrix(0,66,2)
> for(i in 1:11){
+ 	for(j in 1:6){
+ 		D1[i+11*(j-1),] <- c(x[i],y[j])
+ 	}
+ }
> D2n <- matrix(0,25,2)
> D2p <- matrix(0,25,2)
> for(i in 1:5){
+ 	for(j in 1:5){
+ 		D2n[i+5*(j-1),] <- c(hx1[i],hy[j])
+ 		D2p[i+5*(j-1),] <- c(hx2[i],hy[j])
+ 	}
+ }
> D2n <- D2n[-c(7,9,17,19),]
> D2p <- D2p[-c(7,9,17,19),]
> Data <- rbind(D1,D2n,D2p)
> Data <- scale(Data[order(Data[,1]),], scale=FALSE)
> N <- nrow(Data)
> #Visualization of the original data
> plot(Data,pch=20,xlab="",ylab="",cex=1,col=rainbow(N,start=.7,end=.9),
+ xlim=c(-7,7),ylim=c(-7,7),main="Original data")
> 
> #Creating a k-NN graph based on Data
> DM <- as.matrix(dist(Data))
> ADM <- make.kNNG(DM,k=25)
> 
> #plot of the adjacency matrix
> AADM <- ADM
> diag(AADM) <- NA
> image(AADM[N:1,],col=topo.colors(3),ann=FALSE,axes=FALSE)
> 
> #Apply some graph embedding methods
> LE <-spec.emb(A=ADM,2,norm=FALSE)
> result.LOE <- LOE(ADM=ADM,p=2,c=0.1,method="BFGS",report=1000,iniX=LE)
initial  value 590.780031 
final  value 0.000000 
converged
> 
> #Procrustes transform
> library(vegan)
Loading required package: permute

Attaching package: 'permute'

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

    permute

Loading required package: lattice
This is vegan 2.6-4

Attaching package: 'vegan'

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

    diversity

> LOEX <- procrustes(X=Data,Y=result.LOE$X)$Yrot
Error in crossprod(X, Y) : "crossprod" is not a BUILTIN function
Calls: procrustes
Execution halted