- using R version 4.0.3 (2020-10-10)
- using platform: x86_64-w64-mingw32 (64-bit)
- using session charset: ISO8859-1
- checking for file 'antaresViz/DESCRIPTION' ... OK
- checking extension type ... Package
- this is package 'antaresViz' version '0.15.3'
- package encoding: UTF-8
- 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 hidden files and directories ... OK
- checking for portable file names ... OK
- checking whether package 'antaresViz' can be installed ... OK
- checking installed package size ... OK
- checking package directory ... 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 R files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... OK
- checking whether the package can be loaded with stated dependencies ... OK
- checking whether the package can be unloaded cleanly ... OK
- checking whether the namespace can be loaded with stated dependencies ... OK
- checking whether the namespace can be unloaded cleanly ... OK
- checking loading without being on the library search path ... 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 ... [28s] OK
- checking Rd files ... OK
- checking Rd metadata ... 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 ... [10s] OK
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [78s] ERROR
Running 'testthat.R' [77s]
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. \-hexbin::hexcoords
9. \-base::getExportedValue(pkg, name)
10. \-base::asNamespace(ns)
11. \-base::getNamespace(ns)
12. \-base::loadNamespace(name)
13. \-base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
14. \-base:::withOneRestart(expr, restarts[[1L]])
15. \-base:::doWithOneRestart(return(expr), restart)
[ FAIL 1 | WARN 7 | SKIP 14 | PASS 313 ]
Error: Test failures
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes in 'inst/doc' ... OK
- checking re-building of vignette outputs ... [6s] OK
- checking PDF version of manual ... OK
- DONE
Status: 1 ERROR