- using R Under development (unstable) (2025-12-18 r89199)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
Debian clang version 21.1.7 (1)
Debian flang version 21.1.7 (1)
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
- checking for file ‘antaresViz/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘antaresViz’ version ‘0.18.3’
- package encoding: UTF-8
- checking CRAN incoming feasibility ... [1s/2s] OK
- 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 serialization versions ... OK
- checking whether package ‘antaresViz’ 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 ... [5s/8s] OK
- checking whether the package can be loaded with stated dependencies ... [4s/5s] OK
- checking whether the package can be unloaded cleanly ... [4s/4s] OK
- checking whether the namespace can be loaded with stated dependencies ... [4s/6s] OK
- checking whether the namespace can be unloaded cleanly ... [4s/6s] OK
- checking loading without being on the library search path ... [5s/6s] OK
- checking whether startup messages can be suppressed ... [5s/6s] 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 ... [38s/44s] 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 installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [5s/6s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [69s/56s] ERROR
Running ‘testthat.R’ [69s/56s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(antaresViz)
Loading required package: antaresRead
Loading required package: antaresProcessing
Attaching package: 'antaresProcessing'
The following object is masked from 'package:testthat':
compare
Loading required package: spMaps
Loading required package: sf
Linking to GEOS 3.14.1, GDAL 3.12.0, PROJ 9.7.1; sf_use_s2() is TRUE
Loading required package: sp
>
> # CRAN limite CPU usage
> # issue :
> data.table::setDTthreads(2)
>
> test_check("antaresViz")
Saving _problems/test-plotThermalGroupCapacities-5.R
[ FAIL 1 | WARN 16 | SKIP 4 | PASS 202 ]
══ Skipped tests (4) ═══════════════════════════════════════════════════════════
• .runExchangesStackTest is not TRUE (4): 'test-exchangesStack.R:225:3',
'test-exchangesStack.R:276:3', 'test-exchangesStack.R:367:3',
'test-exchangesStack.R:421:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-plotThermalGroupCapacities.R:5:3'): plotThermalGroupCapacities ──
Error in ``[.data.table`(ref_filter_by_vers, , `:=`(count, .N), by = select_col, keyby = TRUE)`: attempt access index 9/9 in VECTOR_ELT
Backtrace:
▆
1. ├─antaresViz::plotThermalGroupCapacities(data = thermalGroupCapacities(opts)) at test-plotThermalGroupCapacities.R:5:3
2. │ └─data.table::dcast(data, area ~ group, value.var = "thermalGroupCapacities")
3. │ └─data.table::is.data.table(data)
4. └─antaresProcessing::thermalGroupCapacities(opts)
5. └─antaresRead::readClusterDesc(opts)
6. └─antaresRead:::.readClusterDesc(...)
7. └─antaresRead:::get_input_cluster_properties(...)
8. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE]
9. └─data.table:::`[.data.table`(...)
[ FAIL 1 | WARN 16 | SKIP 4 | PASS 202 ]
Error:
! Test failures.
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [7s/9s] OK
- checking PDF version of manual ... [7s/9s] OK
- checking HTML version of manual ... [3s/3s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR