Running examples in ‘tensorEVD-Ex.R’ failed
The error most likely occurred in:

> ### Name: Hadamard product
> ### Title: Hadamard product
> ### Aliases: Hadamard
> 
> ### ** Examples
> 
>   require(tensorEVD)
>   
>   # (a) Example 1. Indexing using row/column names
>   # Generate rectangular matrices A (nrowA x ncolA) and B (nrowB x ncolB)
>   nA = c(10,15)
>   nB = c(12,8)
>   A = matrix(rnorm(nA[1]*nA[2]), nrow=nA[1])
>   B = matrix(rnorm(nB[1]*nB[2]), nrow=nB[1])
>   dimnames(A) = list(paste0("row",seq(nA[1])), paste0("col",seq(nA[2])))
>   dimnames(B) = list(paste0("row",seq(nB[1])), paste0("col",seq(nB[2])))
>   
>   # Define IDs for a Hadamard of size n1 x n2
>   n = c(1000,500)
>   IDrowA = sample(rownames(A), n[1], replace=TRUE)
>   IDrowB = sample(rownames(B), n[1], replace=TRUE)
>   IDcolA = sample(colnames(A), n[2], replace=TRUE)
>   IDcolB = sample(colnames(B), n[2], replace=TRUE)
>   
>   K1 = Hadamard(A, B, IDrowA, IDrowB, IDcolA, IDcolB, make.dimnames=TRUE)
>   
>   # (it must equal to:)
>   K2 = A[IDrowA,IDcolA]*B[IDrowB,IDcolB]
>   dimnames(K2) = list(paste0(IDrowA,":",IDrowB), paste0(IDcolA,":",IDcolB))
>   all.equal(K1,K2)
[1] TRUE
>   
>   # (b) Example 2. Indexing using integers
>   # Generate squared symmetric matrices A and B 
>   nA = 20
>   nB = 15
>   A = tcrossprod(matrix(rnorm(nA*nA), nrow=nA))
>   B = tcrossprod(matrix(rnorm(nB*nB), nrow=nB))
>   
>   # Define IDs for a Hadamard of size n x n
>   n = 1000
>   IDA = sample(seq(nA), n, replace=TRUE)
>   IDB = sample(seq(nB), n, replace=TRUE)
>   
>   K1 = Hadamard(A, B, IDA, IDB)
>   
>   # (it must equal to:)
>   K2 = A[IDA,IDA]*B[IDB,IDB]
>   all.equal(K1,K2)
[1] TRUE
>   
>   # (c) Inplace calculation
>   # overwrite the output at the same address as the input:
>   IDB = sample(seq(nB), nA, replace=TRUE)
>   
>   K1 = A[]                     # copy of A to be used as input
>   add  = pryr::address(K1)     # address of K on entry
Error in loadNamespace(x) : there is no package called ‘pryr’
Calls: loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Execution halted