- using R Under development (unstable) (2025-12-18 r89199)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
Debian clang version 21.1.7 (1)
Debian flang version 21.1.7 (1)
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
- checking for file ‘DImodelsVis/DESCRIPTION’ ... OK
- this is package ‘DImodelsVis’ version ‘1.0.4’
- package encoding: UTF-8
- checking CRAN incoming feasibility ... [2s/3s] OK
- 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 executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking serialization versions ... OK
- checking whether package ‘DImodelsVis’ can be installed ... OK
See the install log for details.
- checking package directory ... OK
- checking for future file timestamps ... 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 code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [4s/5s] OK
- checking whether the package can be loaded with stated dependencies ... [4s/5s] OK
- checking whether the package can be unloaded cleanly ... [4s/5s] OK
- checking whether the namespace can be loaded with stated dependencies ... [4s/5s] OK
- checking whether the namespace can be unloaded cleanly ... [4s/6s] OK
- checking loading without being on the library search path ... [4s/6s] 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 ... [31s/40s] OK
- checking Rd files ... [1s/1s] OK
- checking Rd metadata ... OK
- checking Rd line widths ... 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 ... [123s/157s] OK
Examples with CPU (user + system) or elapsed time > 5s
user system elapsed
model_diagnostics_plot 10.043 0.154 13.183
simplex_path 8.106 0.079 10.086
model_diagnostics 7.827 0.135 9.428
visualise_effects 7.655 0.058 10.109
simplex_path_plot 6.578 0.001 7.505
gradient_change_plot 6.370 0.140 8.381
model_selection 6.438 0.019 9.009
prediction_contributions 5.904 0.048 7.649
simplex_path_data 5.559 0.012 6.107
DImodelsVis-package 5.013 0.278 6.841
gradient_change 5.032 0.007 7.200
grouped_ternary 4.649 0.100 6.594
ternary_data 3.388 1.242 5.846
visualise_effects_plot 4.308 0.004 5.586
prediction_contributions_plot 3.981 0.000 5.084
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [123s/146s] ERROR
Running ‘spelling.R’ [0s/0s]
Running ‘testthat.R’ [122s/145s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(DImodelsVis)
>
> # Taken from ggside see github issue #141 on vdiffr
> if ((nzchar(Sys.getenv("CI")) ||
+ !nzchar(Sys.getenv("NOT_CRAN"))) &&
+ identical(Sys.getenv("VDIFFR_RUN_TESTS"), 'false')) {
+ #if we are running tests remotely AND
+ # we are opting out of using vdiffr
+ # assigning a dummy function
+
+ expect_doppelganger <- function(...) {
+ testthat::skip("`VDIFFR_RUN_TESTS` set to false on this remote check")
+ }
+ } else {
+ expect_doppelganger <- vdiffr::expect_doppelganger
+ }
>
> test_check("DImodelsVis")
v Finished data preparation.
v Created all plots.
v Created all plots.
v Finished data preparation.
Saving _problems/test-Ternary-77.R
v Created plot.
v Created plot.
[ FAIL 1 | WARN 0 | SKIP 8 | PASS 315 ]
══ Skipped tests (8) ═══════════════════════════════════════════════════════════
• On CRAN (8): 'test-ConditionalTernary.R:2:1', 'test-GradientChange.R:2:1',
'test-GroupedTernary.R:2:1', 'test-ModelDiagnostics.R:2:1',
'test-ModelSelection.R:2:1', 'test-PredictionContributions.R:2:1',
'test-SimplexPath.R:2:1', 'test-VisualiseEffects.R:2:1'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-Ternary.R:62:3'): Basic ternary works as expected ──────────────
Error in `geom_text_contour(skip = 0, breaks = breaks, label.placer = metR::label_placer_flattest(), size = 3.5, nudge_x = 0.015, nudge_y = 0.015)`: Problem while converting geom to grob.
i Error occurred in the 11th layer.
Caused by error in `[.data.table`:
! attempt access index 20/20 in VECTOR_ELT
Backtrace:
▆
1. ├─vdiffr::expect_doppelganger(...) at test-Ternary.R:62:3
2. │ └─vdiffr (local) writer(fig, testcase, title)
3. │ ├─vdiffr:::print_plot(plot, title)
4. │ └─vdiffr:::print_plot.default(plot, title)
5. │ ├─base::print(p)
6. │ └─base::print.default(p)
7. │ ├─methods (local) `<stndrdGn>`(`<ggmltplt>`)
8. │ └─ggfortify (local) `<stndrdGn>`(`<ggmltplt>`)
9. │ ├─base::print(object)
10. │ └─ggfortify:::print(object)
11. │ └─ggfortify (local) .local(x, ...)
12. │ ├─base::do.call(gridExtra::grid.arrange, args)
13. │ └─gridExtra (local) `<fn>`(`<ggplt2::>`, `<ggplt2::>`, ncol = 2L, nrow = 1L)
14. │ └─gridExtra::arrangeGrob(...)
15. │ └─base::lapply(grobs[toconv], ggplot2::ggplotGrob)
16. │ └─ggplot2 (local) FUN(X[[i]], ...)
17. │ ├─ggplot2::ggplot_gtable(ggplot_build(x))
18. │ └─ggplot2 (local) `ggplot_gtable.ggplot2::ggplot_built`(ggplot_build(x))
19. │ └─ggplot2:::by_layer(...)
20. │ ├─rlang::try_fetch(...)
21. │ │ ├─base::tryCatch(...)
22. │ │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
23. │ │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
24. │ │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
25. │ │ └─base::withCallingHandlers(...)
26. │ └─ggplot2 (local) f(l = layers[[i]], d = data[[i]])
27. │ └─l$draw_geom(d, layout)
28. │ └─ggplot2 (local) draw_geom(..., self = self)
29. │ └─self$geom$draw_layer(...)
30. │ └─ggplot2 (local) draw_layer(..., self = self)
31. │ └─base::lapply(...)
32. │ └─ggplot2 (local) FUN(X[[i]], ...)
33. │ ├─rlang::inject(self$draw_panel(data, panel_params, coord, !!!params))
34. │ └─self$draw_panel(...)
35. │ └─metR (local) draw_panel(...)
36. │ ├─data[, `:=`(N, .N), by = .(group, piece)]
37. │ └─data.table:::`[.data.table`(...)
38. └─base::.handleSimpleError(...)
39. └─rlang (local) h(simpleError(msg, call))
40. └─handlers[[1L]](cnd)
41. └─cli::cli_abort(...)
42. └─rlang::abort(...)
[ FAIL 1 | WARN 0 | SKIP 8 | PASS 315 ]
Error:
! Test failures.
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [156s/200s] OK
- checking PDF version of manual ... [10s/13s] OK
- checking HTML version of manual ... [6s/9s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR