- using R Under development (unstable) (2026-01-30 r89357)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-15 (Debian 15.2.0-12) 15.2.0
GNU Fortran (Debian 15.2.0-12) 15.2.0
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
- checking for file ‘tensorEVD/DESCRIPTION’ ... OK
- this is package ‘tensorEVD’ version ‘0.1.4’
- package encoding: UTF-8
- checking CRAN incoming feasibility ... [1s/1s] OK
- checking package namespace information ... OK
- checking package dependencies ... INFO
Package suggested but not available for checking: ‘pryr’
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘tensorEVD’ can be installed ... OK
See the install log for details.
- used C compiler: ‘gcc-15 (Debian 15.2.0-12) 15.2.0’
- checking package directory ... OK
- checking for future file timestamps ... OK
- checking ‘build’ directory ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [36s/49s] OK
- checking whether the package can be loaded with stated dependencies ... [32s/38s] OK
- checking whether the package can be unloaded cleanly ... [36s/52s] OK
- checking whether the namespace can be loaded with stated dependencies ... [0s/0s] OK
- checking whether the namespace can be unloaded cleanly ... [0s/0s] OK
- checking loading without being on the library search path ... [1s/1s] OK
- checking whether startup messages can be suppressed ... [33s/41s] OK
- checking use of S3 registration ... OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [3s/4s] OK
- checking Rd files ... [0s/1s] OK
- checking Rd metadata ... OK
- checking Rd line widths ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking line endings in C/C++/Fortran sources/headers ... OK
- checking line endings in Makefiles ... OK
- checking compilation flags in Makevars ... OK
- checking for GNU extensions in Makefiles ... OK
- checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK
- checking use of PKG_*FLAGS in Makefiles ... OK
- checking use of SHLIB_OPENMP_*FLAGS in Makefiles ... OK
- checking pragmas in C/C++ headers and code ... OK
- checking compilation flags used ... OK
- checking compiled code ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [1s/1s] ERROR
Running examples in ‘tensorEVD-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### 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
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [4s/6s] OK
- checking PDF version of manual ... [4s/5s] OK
- checking HTML version of manual ... [1s/2s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR