Running 'testthat.R' [86s]
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: sp
  Loading required package: raster
  
  Attaching package: 'raster'
  
  The following object is masked from 'package:antaresProcessing':
  
      getValues
  
  The following object is masked from 'package:antaresRead':
  
      readIniFile
  
  Loading required package: rgeos
  rgeos version: 0.5-9, (SVN revision 684)
   GEOS runtime version: 3.9.3-CAPI-1.14.3 
   Please note that rgeos will be retired by the end of 2023,
  plan transition to sf functions using GEOS at your earliest convenience.
   GEOS using OverlayNG
   Linking to sp version: 1.5-0 
   Polygon checking: TRUE 
  
  > 
  > test_check("antaresViz")
  [ FAIL 1 | WARN 2 | SKIP 13 | PASS 301 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • .runExchangesStackTest is not TRUE (8)
  • .runProdStackTest is not TRUE (4)
  • .runTsPlotTest is not TRUE (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-plotXY.R:7'): prodStack, no interactive ────────────────────────
  Error in ``$<-.data.frame`(`*tmp*`, "size", value = logical(0))`: replacement has 0 rows, data has 109
  Backtrace:
      ▆
   1. └─antaresViz::plotXY(dta, "NODU", "LOAD", precision = 50, sizeOnCount = FALSE) at test-plotXY.R:7:4
   2.   ├─plotly::ggplotly(p)
   3.   └─plotly:::ggplotly.ggplot(p)
   4.     └─plotly::gg2list(...)
   5.       └─plotly:::layers2traces(data, prestats_data, layout, plot)
   6.         ├─plotly::to_basic(...)
   7.         └─plotly:::to_basic.GeomHex(...)
   8.           ├─base::`$<-`(`*tmp*`, "size", value = `<lgl>`)
   9.           └─base::`$<-.data.frame`(`*tmp*`, "size", value = `<lgl>`)
  
  [ FAIL 1 | WARN 2 | SKIP 13 | PASS 301 ]
  Error: Test failures
  Execution halted