Running ‘testthat.R’ [68s/66s]
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