Running 'testthat.R' [62s]
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.6-1, (SVN revision 692)
   GEOS runtime version: 3.11.1-CAPI-1.17.1 
   Please note that rgeos will be retired during 2023,
  plan transition to sf functions using GEOS at your earliest convenience.
   GEOS using OverlayNG
   Linking to sp version: 1.6-0 
   Polygon checking: TRUE 
  
  > 
  > test_check("antaresViz")
  [ FAIL 13 | WARN 1 | SKIP 12 | PASS 200 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • .runExchangesStackTest is not TRUE (8)
  • .runProdStackTest is not TRUE (4)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-exchangesStack.R:59'): exchangesStack, no interactive, x and refStudy are antaresDataTable ──
  Error in `.checkTypos(e, names_x)`: Object 'check_tzones' not found amongst link, timeId, time, day, month and 29 more
  Backtrace:
      ▆
   1. ├─...[] at test-exchangesStack.R:59:4
   2. ├─antaresRead:::`[.antaresDataTable`(...) at test-exchangesStack.R:59:4
   3. ├─base::NextMethod("[", x)
   4. └─data.table:::`[.data.table`(...)
   5.   └─base::tryCatch(...)
   6.     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   7.       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   8.         └─value[[3L]](cond)
   9.           └─data.table:::.checkTypos(e, names_x)
  ── Error ('test-exchangesStack.R:87'): exchangesStack, no interactive, x and refStudy are antaresDataList ──
  Error in `.checkTypos(e, names_x)`: Object 'check_tzones' not found amongst link, timeId, time, day, month and 29 more
  Backtrace:
      ▆
   1. ├─...[] at test-exchangesStack.R:87:4
   2. ├─antaresRead:::`[.antaresDataTable`(...) at test-exchangesStack.R:87:4
   3. ├─base::NextMethod("[", x)
   4. └─data.table:::`[.data.table`(...)
   5.   └─base::tryCatch(...)
   6.     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   7.       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   8.         └─value[[3L]](cond)
   9.           └─data.table:::.checkTypos(e, names_x)
  ── Error ('test-exchangesStack.R:147'): exchangesStack, no interactive, x is a list of antaresDataTable and refStudy an antaresDataTable ──
  Error in `.checkTypos(e, names_x)`: Object 'check_tzones' not found amongst link, timeId, time, day, month and 29 more
  Backtrace:
      ▆
   1. ├─...[] at test-exchangesStack.R:147:4
   2. ├─antaresRead:::`[.antaresDataTable`(...) at test-exchangesStack.R:147:4
   3. ├─base::NextMethod("[", x)
   4. └─data.table:::`[.data.table`(...)
   5.   └─base::tryCatch(...)
   6.     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   7.       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   8.         └─value[[3L]](cond)
   9.           └─data.table:::.checkTypos(e, names_x)
  ── Error ('test-exchangesStack.R:181'): exchangesStack, no interactive, x is a list of antaresDataList and refStudy an antaresDataList ──
  Error in `.checkTypos(e, names_x)`: Object 'check_tzones' not found amongst link, timeId, time, day, month and 29 more
  Backtrace:
      ▆
   1. ├─...[] at test-exchangesStack.R:181:4
   2. ├─antaresRead:::`[.antaresDataTable`(...) at test-exchangesStack.R:181:4
   3. ├─base::NextMethod("[", x)
   4. └─data.table:::`[.data.table`(...)
   5.   └─base::tryCatch(...)
   6.     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   7.       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   8.         └─value[[3L]](cond)
   9.           └─data.table:::.checkTypos(e, names_x)
  ── Error ('test-prodStack.R:50'): prodStack must work with refStudy, if x and refStudy are antaresDataList,  ──
  Error in `.checkTypos(e, names_x)`: Object 'check_tzones' not found amongst area, timeId, time, day, month and 123 more
  Backtrace:
      ▆
   1. ├─...[] at test-prodStack.R:50:4
   2. ├─antaresRead:::`[.antaresDataTable`(...) at test-prodStack.R:50:4
   3. ├─base::NextMethod("[", x)
   4. └─data.table:::`[.data.table`(...)
   5.   └─base::tryCatch(...)
   6.     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   7.       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   8.         └─value[[3L]](cond)
   9.           └─data.table:::.checkTypos(e, names_x)
  ── Error ('test-prodStack.R:84'): prodStack must work with refStudy, if x is a list of antaresDataList and refStudy an antaresDataList,  ──
  Error in `.checkTypos(e, names_x)`: Object 'check_tzones' not found amongst area, timeId, time, day, month and 123 more
  Backtrace:
      ▆
   1. ├─...[] at test-prodStack.R:84:4
   2. ├─antaresRead:::`[.antaresDataTable`(...) at test-prodStack.R:84:4
   3. ├─base::NextMethod("[", x)
   4. └─data.table:::`[.data.table`(...)
   5.   └─base::tryCatch(...)
   6.     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   7.       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   8.         └─value[[3L]](cond)
   9.           └─data.table:::.checkTypos(e, names_x)
  ── Error ('test-prodStack.R:284'): prodStack must work with refStudy, if interactive is set to TRUE and if x and refStudy are antaresData,  ──
  Error in `htmlwidget$charts[[widgetsNumber]]$widgets[[1]]$x`: $ operator is invalid for atomic vectors
  Backtrace:
      ▆
   1. └─antaresViz:::.get_data_from_htmlwidget(PS3) at test-prodStack.R:284:2
  ── Error ('test-prodStack.R:338'): prodStack must work with refStudy, if interactive is set to TRUE and if x a list of antaresData and refStudy an antaresData,  ──
  Error in `htmlwidget$charts[[widgetsNumber]]$widgets[[1]]$x`: $ operator is invalid for atomic vectors
  Backtrace:
      ▆
   1. └─antaresViz:::.get_data_from_htmlwidget(PS3, widgetsNumber = 2) at test-prodStack.R:338:2
  ── Error ('test-prodStack.R:388'): prodStack must work with refStudy, if interactive is set to TRUE and if x is an antaresDataList and refStudy an antaresDataList,  ──
  Error in `htmlwidget$charts[[widgetsNumber]]$widgets[[1]]$x`: $ operator is invalid for atomic vectors
  Backtrace:
      ▆
   1. └─antaresViz:::.get_data_from_htmlwidget(PS3, widgetsNumber = 1) at test-prodStack.R:388:2
  ── Error ('test-prodStack.R:442'): prodStack must work with refStudy, if interactive is set to TRUE and if x is a list of antaresDataList and refStudy an antaresDataList ,  ──
  Error in `htmlwidget$charts[[widgetsNumber]]$widgets[[1]]$x`: $ operator is invalid for atomic vectors
  Backtrace:
      ▆
   1. └─antaresViz:::.get_data_from_htmlwidget(PS3, widgetsNumber = 3) at test-prodStack.R:442:2
  ── Error ('test-ts_plot.R:45'): tsPlot, work with compare ──────────────────────
  Error in ``>.POSIXt`(dt$time[1], dateRange[1])`: object 'check_tzones' not found
  Backtrace:
      ▆
   1. └─exList$setValue("mcYear", 1, chartId = 1, reactive = FALSE) at test-ts_plot.R:45:2
   2.   └─manipulateWidget (local) updateChart(chartId)
   3.     └─base::eval(expr, envir = e)
   4.       └─base::eval(expr, envir = e)
   5.         └─params[["x"]][[ind]][[table]]$plotFun(...)
   6.           └─lubridate (local) `>.POSIXt`(dt$time[1], dateRange[1])
  ── Error ('test-ts_plot.R:140'): tsPlot, no interactive, x and refStudy are antaresDataList ──
  Error in `.checkTypos(e, names_x)`: Object 'check_tzones' not found amongst link, mcYear, timeId, time, day and 12 more
  Backtrace:
      ▆
   1. ├─...[] at test-ts_plot.R:140:4
   2. ├─antaresRead:::`[.antaresDataTable`(...) at test-ts_plot.R:140:4
   3. ├─base::NextMethod("[", x)
   4. └─data.table:::`[.data.table`(...)
   5.   └─base::tryCatch(...)
   6.     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   7.       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   8.         └─value[[3L]](cond)
   9.           └─data.table:::.checkTypos(e, names_x)
  ── Error ('test-ts_plot.R:153'): (code run outside of `test_that()`) ───────────
  Error in `.checkTypos(e, names_x)`: Object 'check_tzones' not found amongst link, timeId, time, day, month and 29 more
  Backtrace:
       ▆
    1. └─testthat::describe(...) at test-ts_plot.R:153:0
    2.   └─base::eval(substitute(code), describe_environment)
    3.     └─base::eval(substitute(code), describe_environment)
    4.       ├─...[] at test-ts_plot.R:193:4
    5.       ├─antaresRead:::`[.antaresDataTable`(...) at test-ts_plot.R:193:4
    6.       ├─base::NextMethod("[", x)
    7.       └─data.table:::`[.data.table`(...)
    8.         └─base::tryCatch(...)
    9.           └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   10.             └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   11.               └─value[[3L]](cond)
   12.                 └─data.table:::.checkTypos(e, names_x)
  
  [ FAIL 13 | WARN 1 | SKIP 12 | PASS 200 ]
  Error: Test failures
  Execution halted