- using R Under development (unstable) (2025-12-04 r89100)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-15 (Debian 15.2.0-9) 15.2.0
GNU Fortran (Debian 15.2.0-9) 15.2.0
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
- checking for file ‘CMTFtoolbox/DESCRIPTION’ ... OK
- this is package ‘CMTFtoolbox’ version ‘1.0.1’
- package encoding: UTF-8
- checking CRAN incoming feasibility ... [1s/1s] OK
- checking package namespace information ... OK
- checking package dependencies ... WARNING
Cannot process vignettes
Packages suggested but not available for checking:
'knitr', 'ggpubr', 'NPLStoolbox', 'parafac4microbiome', 'rmarkdown'
VignetteBuilder package required for checking but not installed: ‘knitr’
- 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 serialization versions ... OK
- checking whether package ‘CMTFtoolbox’ can be installed ... OK
See the install log for details.
- 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 ... [0s/0s] OK
- checking whether the package can be loaded with stated dependencies ... [0s/0s] OK
- checking whether the package can be unloaded cleanly ... [0s/0s] 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 ... [0s/0s] 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 ... [6s/7s] OK
- checking Rd files ... [0s/0s] 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 contents of ‘data’ directory ... OK
- checking data for non-ASCII characters ... [0s/0s] OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [4s/4s] ERROR
Running examples in ‘CMTFtoolbox-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: ACMTFR_modelSelection
> ### Title: Model selection for ACMTFR
> ### Aliases: ACMTFR_modelSelection
>
> ### ** Examples
>
> set.seed(123)
>
> I = 10
> J = 5
> K = 3
> df = array(rnorm(I*J*K), c(I,J,K))
> df2 = array(rnorm(I*J*K), c(I,J,K))
> datasets = list(df, df2)
> modes = list(c(1,2,3), c(1,4,5))
> Y = as.matrix(rnorm(I))
>
> # A very small procedure is run to limit computational requirements
> result = ACMTFR_modelSelection(datasets,
+ modes,
+ Y,
+ pi=1.0,
+ maxNumComponents=2,
+ nstart=2,
+ cvFolds=2,
+ rel_tol=0.5,
+ abs_tol=0.5)
Error in loadNamespace(x) : there is no package called ‘ggpubr’
Calls: ACMTFR_modelSelection ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [60s/67s] ERROR
Running ‘testthat.R’ [60s/66s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(CMTFtoolbox)
>
> test_check("CMTFtoolbox")
Saving _problems/test-ACMTFR_modelSelection-13.R
Saving _problems/test-ACMTFR_modelSelection-28.R
Saving _problems/test-ACMTFR_modelSelection-43.R
Saving _problems/test-ACMTF_modelSelection-12.R
Saving _problems/test-ACMTF_modelSelection-26.R
[ FAIL 5 | WARN 0 | SKIP 5 | PASS 129 ]
══ Skipped tests (5) ═══════════════════════════════════════════════════════════
• On CRAN (5): 'test-ACMTFR_modelSelection.R:47:3',
'test-ACMTF_modelSelection.R:30:3', 'test-acmtf_opt.R:97:3',
'test-acmtfr_opt.R:101:3', 'test-cmtf_opt.R:136:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-ACMTFR_modelSelection.R:13:3'): the function works normally ──
Expected `ACMTFR_modelSelection(...)` not to throw any errors.
Actually got a <packageNotFoundError> with message:
there is no package called 'ggpubr'
── Failure ('test-ACMTFR_modelSelection.R:28:3'): the function works for the tensor-matrix case ──
Expected `ACMTFR_modelSelection(...)` not to throw any errors.
Actually got a <packageNotFoundError> with message:
there is no package called 'ggpubr'
── Failure ('test-ACMTFR_modelSelection.R:43:3'): the function works when jack-knifing ──
Expected `ACMTFR_modelSelection(...)` not to throw any errors.
Actually got a <packageNotFoundError> with message:
there is no package called 'ggpubr'
── Failure ('test-ACMTF_modelSelection.R:12:3'): the function works normally ───
Expected `ACMTF_modelSelection(...)` not to throw any errors.
Actually got a <packageNotFoundError> with message:
there is no package called 'ggpubr'
── Failure ('test-ACMTF_modelSelection.R:26:3'): the function works when jack-knifing ──
Expected `ACMTF_modelSelection(...)` not to throw any errors.
Actually got a <packageNotFoundError> with message:
there is no package called 'ggpubr'
[ FAIL 5 | WARN 0 | SKIP 5 | PASS 129 ]
Error:
! Test failures.
Execution halted
- checking package vignettes ... NOTE
Package has ‘vignettes’ subdirectory but apparently no vignettes.
Perhaps the ‘VignetteBuilder’ information is missing from the
DESCRIPTION file?
- checking PDF version of manual ... [5s/6s] OK
- checking HTML version of manual ... [1s/2s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 2 ERRORs, 1 WARNING, 1 NOTE