Running 'testthat.R' [96s]
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
  
  Loading required package: rgeos
  rgeos version: 0.5-5, (SVN revision 640)
   GEOS runtime version: 3.8.0-CAPI-1.13.1 
   Linking to sp version: 1.4-5 
   Polygon checking: TRUE 
  
  > 
  > test_check("antaresViz")
  == Skipped tests ===============================================================
  * .runExchangesStackTest is not TRUE (8)
  * .runPlotMapTest is not TRUE (1)
  * .runProdStackTest is not TRUE (4)
  * .runTsPlotTest is not TRUE (1)
  
  == Warnings ====================================================================
  -- Warning (test-plotXY.R:6:5): prodStack, no interactive ----------------------
  Computation failed in `stat_binhex()`:
    Package `hexbin` required for `stat_binhex`.
    Please install and try again.
  Backtrace:
    1. antaresViz::plotXY(dta, "NODU", "LOAD", precision = 50, sizeOnCount = FALSE) test-plotXY.R:6:4
    3. plotly:::ggplotly.ggplot(p)
    4. plotly::gg2list(...)
    5. plotly:::ggplotly_build(p)
    6. plotly:::by_layer(function(l, d) l$compute_statistic(d, layout))
    7. plotly:::f(l = layers[[i]], d = data[[i]])
    8. l$compute_statistic(d, layout)
    9. ggplot2:::f(..., self = self)
   10. self$stat$compute_layer(data, params, layout)
   11. ggplot2:::f(..., self = self)
   12. ggplot2:::dapply(...)
   13. ggplot2:::apply_fun(df)
   14. ggplot2:::fun(x, ...)
   15. base::tryCatch(...)
   16. base:::tryCatchList(expr, classes, parentenv, handlers)
   17. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   18. value[[3L]](cond)
  -- Warning (test-plotXY.R:6:5): prodStack, no interactive ----------------------
  no non-missing arguments to min; returning Inf
  Backtrace:
    1. antaresViz::plotXY(dta, "NODU", "LOAD", precision = 50, sizeOnCount = FALSE) test-plotXY.R:6:4
    3. plotly:::ggplotly.ggplot(p)
    4. plotly::gg2list(...)
    5. plotly:::layers2traces(data, prestats_data, layout, plot)
    7. plotly:::to_basic.GeomHex(...)
    8. ggplot2::resolution(data[["x"]], FALSE)
   10. base::range(x, na.rm = TRUE)
  -- Warning (test-plotXY.R:6:5): prodStack, no interactive ----------------------
  no non-missing arguments to max; returning -Inf
  Backtrace:
    1. antaresViz::plotXY(dta, "NODU", "LOAD", precision = 50, sizeOnCount = FALSE) test-plotXY.R:6:4
    3. plotly:::ggplotly.ggplot(p)
    4. plotly::gg2list(...)
    5. plotly:::layers2traces(data, prestats_data, layout, plot)
    7. plotly:::to_basic.GeomHex(...)
    8. ggplot2::resolution(data[["x"]], FALSE)
   10. base::range(x, na.rm = TRUE)
  -- Warning (test-plotXY.R:6:5): prodStack, no interactive ----------------------
  no non-missing arguments to min; returning Inf
  Backtrace:
   1. antaresViz::plotXY(dta, "NODU", "LOAD", precision = 50, sizeOnCount = FALSE) test-plotXY.R:6:4
   3. plotly:::ggplotly.ggplot(p)
   4. plotly::gg2list(...)
   5. plotly:::layers2traces(data, prestats_data, layout, plot)
   7. plotly:::to_basic.GeomHex(...)
   8. ggplot2::resolution(data[["x"]], FALSE)
  -- Warning (test-plotXY.R:6:5): prodStack, no interactive ----------------------
  no non-missing arguments to min; returning Inf
  Backtrace:
    1. antaresViz::plotXY(dta, "NODU", "LOAD", precision = 50, sizeOnCount = FALSE) test-plotXY.R:6:4
    3. plotly:::ggplotly.ggplot(p)
    4. plotly::gg2list(...)
    5. plotly:::layers2traces(data, prestats_data, layout, plot)
    7. plotly:::to_basic.GeomHex(...)
    8. ggplot2::resolution(data[["y"]], FALSE)
   10. base::range(x, na.rm = TRUE)
  -- Warning (test-plotXY.R:6:5): prodStack, no interactive ----------------------
  no non-missing arguments to max; returning -Inf
  Backtrace:
    1. antaresViz::plotXY(dta, "NODU", "LOAD", precision = 50, sizeOnCount = FALSE) test-plotXY.R:6:4
    3. plotly:::ggplotly.ggplot(p)
    4. plotly::gg2list(...)
    5. plotly:::layers2traces(data, prestats_data, layout, plot)
    7. plotly:::to_basic.GeomHex(...)
    8. ggplot2::resolution(data[["y"]], FALSE)
   10. base::range(x, na.rm = TRUE)
  -- Warning (test-plotXY.R:6:5): prodStack, no interactive ----------------------
  no non-missing arguments to min; returning Inf
  Backtrace:
   1. antaresViz::plotXY(dta, "NODU", "LOAD", precision = 50, sizeOnCount = FALSE) test-plotXY.R:6:4
   3. plotly:::ggplotly.ggplot(p)
   4. plotly::gg2list(...)
   5. plotly:::layers2traces(data, prestats_data, layout, plot)
   7. plotly:::to_basic.GeomHex(...)
   8. ggplot2::resolution(data[["y"]], FALSE)
  
  == Failed tests ================================================================
  -- Error (test-plotXY.R:6:5): prodStack, no interactive ------------------------
  Error: there is no package called 'hexbin'
  Backtrace:
       x
    1. +-antaresViz::plotXY(dta, "NODU", "LOAD", precision = 50, sizeOnCount = FALSE) test-plotXY.R:6: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::loadNamespace(x)
    9.   \-base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   10.     \-base:::withOneRestart(expr, restarts[[1L]])
   11.       \-base:::doWithOneRestart(return(expr), restart)
  
  [ FAIL 1 | WARN 7 | SKIP 14 | PASS 313 ]
  Error: Test failures
  Execution halted