- using R version 4.4.1 (2024-06-14)
- using platform: aarch64-apple-darwin20
- R was compiled by
Apple clang version 14.0.0 (clang-1400.0.29.202)
GNU Fortran (GCC) 12.2.0
- running under: macOS Ventura 13.4
- using session charset: UTF-8
- checking for file ‘multiDoE/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘multiDoE’ version ‘0.9.2’
- package encoding: UTF-8
- checking package namespace information ... OK
- checking package dependencies ... OK
- 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 ‘multiDoE’ can be installed ... [3s/3s] OK
See the install log for details.
- checking installed package size ... OK
- checking package directory ... 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 ... [1s/1s] OK
- checking whether the package can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the package can be unloaded cleanly ... [1s/1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [0s/0s] OK
- checking whether the namespace can be unloaded cleanly ... [1s/1s] OK
- checking loading without being on the library search path ... [1s/1s] 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 ... [2s/3s] OK
- checking Rd files ... [0s/0s] OK
- checking Rd metadata ... 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 installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [1s/1s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [45s/47s] ERROR
Running ‘testthat.R’ [44s/47s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(multiDoE)
>
> test_check("multiDoE")
[1] "tests_data/ex_score_cs1.Rds"
[1] 1
[1] 2
[1] 3
[1] 4
[1] 5
[1] 6
[1] 7
[1] 8
[1] 9
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 19 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test_cs1.R:172:3'): runTPLSearch works ────────────────────────────
runTPLS(...) (`actual`) not equal to structure(...) (`expected`).
actual$ar[[5]]$scores vs expected$ar[[5]]$scores
[,1] [,2] [,3]
actual$ar[[5]]$scores[21, ] 3.506164802e-01 0.10249150495 1.316202110e-01
actual$ar[[5]]$scores[22, ] 3.538000222e-01 0.10081430258 1.337544793e-01
actual$ar[[5]]$scores[23, ] 4.332805979e+01 0.31520738616 4.141035533e+01
- actual$ar[[5]]$scores[24, ] 9.034168420e+13 4.76225573108 6.775626315e+13
+ expected$ar[[5]]$scores[24, ] 1.159455434e+02 0.38509560424 8.148504377e+01
actual$ar[[5]]$scores[25, ] 3.525809168e-01 0.10464645636 1.319587346e-01
actual$ar[[5]]$scores[26, ] 3.776864161e-01 0.09567034905 1.385449733e-01
actual$ar[[5]]$scores[27, ] 3.512292404e-01 0.10466966389 1.326624394e-01
actual$ar[[5]]$solutions[[24]] vs expected$ar[[5]]$solutions[[24]]
[,1] [,2] [,3]
- actual$ar[[5]]$solutions[[24]][1, ] 0 -1 1
+ expected$ar[[5]]$solutions[[24]][1, ] 0 -1 0
actual$ar[[5]]$solutions[[24]][2, ] -1 1 0
- actual$ar[[5]]$solutions[[24]][3, ] 1 -1 -1
+ expected$ar[[5]]$solutions[[24]][3, ] 1 0 -1
actual$ar[[5]]$solutions[[24]][4, ] 1 1 1
actual$ar[[5]]$solutions[[24]][5, ] 1 -1 1
actual$ar[[5]]$solutions[[24]][6, ] -1 1 1
actual$ar[[5]]$solutions[[24]][7, ] 1 -1 1
- actual$ar[[5]]$solutions[[24]][8, ] 1 1 1
+ expected$ar[[5]]$solutions[[24]][8, ] 1 1 -1
- actual$ar[[5]]$solutions[[24]][9, ] 1 0 1
+ expected$ar[[5]]$solutions[[24]][9, ] 1 1 -1
actual$ar[[5]]$solutions[[24]][10, ] -1 -1 -1
and 2 more ...
actual$ar[[5]]$solutions[[24]] vs expected$ar[[5]]$solutions[[24]]
[,1] [,2] [,3]
actual$ar[[5]]$solutions[[24]][17, ] 0 0 0
actual$ar[[5]]$solutions[[24]][18, ] -1 -1 -1
actual$ar[[5]]$solutions[[24]][19, ] 0 0 0
- actual$ar[[5]]$solutions[[24]][20, ] 1 0 1
+ expected$ar[[5]]$solutions[[24]][20, ] 0 0 1
- actual$ar[[5]]$solutions[[24]][21, ] 1 1 1
+ expected$ar[[5]]$solutions[[24]][21, ] 1 1 -1
- actual$ar[[5]]$solutions[[24]][22, ] 1 -1 1
+ expected$ar[[5]]$solutions[[24]][22, ] -1 -1 -1
actual$ar[[5]]$solutions[[24]][23, ] 0 0 0
- actual$ar[[5]]$solutions[[24]][24, ] 1 1 1
+ expected$ar[[5]]$solutions[[24]][24, ] -1 1 1
- actual$ar[[5]]$solutions[[24]][25, ] 1 1 1
+ expected$ar[[5]]$solutions[[24]][25, ] 1 1 -1
actual$ar[[5]]$solutions[[24]][26, ] 0 0 0
and 2 more ...
actual$stats[[5]] | expected$stats[[5]]
[19] 19731.0 | 19731.0 [19]
[20] 20068.0 | 20068.0 [20]
[21] 21281.0 | 21281.0 [21]
[22] 22309.0 - 22314.0 [22]
[23] 22816.0 - 22821.0 [23]
[24] 23156.0 - 23161.0 [24]
[25] 23663.0 - 23668.0 [25]
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 19 ]
Error: Test failures
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [66s/69s] OK
- checking PDF version of manual ... [4s/4s] OK
- DONE
Status: 1 ERROR
- using check arguments '--no-clean-on-error '