- using R Under development (unstable) (2025-09-11 r88810)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc (GCC) 15.1.1 20250521 (Red Hat 15.1.1-2)
GNU Fortran (GCC) 15.1.1 20250521 (Red Hat 15.1.1-2)
- running under: Fedora Linux 42 (Workstation Edition)
- using session charset: UTF-8
- using option ‘--no-stop-on-test-error’
- checking for file ‘triplot/DESCRIPTION’ ... OK
- this is package ‘triplot’ version ‘1.3.0’
- 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 executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘triplot’ can be installed ... [17s/22s] OK
See the install log for details.
- checking package 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 ... 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 ... [25s/33s] OK
- checking Rd files ... 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 LazyData ... INFO
'LazyData' is specified without a 'data' directory
- checking examples ... [15s/19s] ERROR
Running examples in ‘triplot-Ex.R’ failed
The error most likely occurred in:
> ### Name: plot.triplot
> ### Title: Plots triplot
> ### Aliases: plot.triplot
>
> ### ** Examples
>
> library(DALEX)
Welcome to DALEX (version: 2.5.2).
Find examples and detailed introduction at: http://ema.drwhy.ai/
> set.seed(123)
> apartments_num <- apartments[,unlist(lapply(apartments, is.numeric))]
> apartments_num_lm_model <- lm(m2.price ~ ., data = apartments_num)
> apartments_num_new_observation <- apartments_num[30, ]
> explainer_apartments <- explain(model = apartments_num_lm_model,
+ data = apartments_num[,-1],
+ y = apartments_num[, 1],
+ verbose = FALSE)
> apartments_tri <- calculate_triplot(x = explainer_apartments,
+ new_observation = apartments_num_new_observation[-1])
> plot(apartments_tri)
Error: <ggplot2::ggplot> object properties are invalid:
- @labels must be <ggplot2::labels>, not <character>
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [27s/32s] ERROR
Running ‘testthat.R’ [26s/31s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(triplot)
>
> test_check("triplot")
Welcome to DALEX (version: 2.5.2).
Find examples and detailed introduction at: http://ema.drwhy.ai/
[ FAIL 2 | WARN 3 | SKIP 0 | PASS 74 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test_triplot.R:86:3'): check plot.calculate_triplot function ────────
Error: <ggplot2::ggplot> object properties are invalid:
- @labels must be <ggplot2::labels>, not <character>
Backtrace:
▆
1. ├─base::plot(apartments_tri) at test_triplot.R:86:3
2. └─triplot:::plot.triplot(apartments_tri)
3. └─S7:::Ops.S7_object(p3, theme(axis.title = element_text(size = axis_lab_size)))
4. ├─base::tryCatch(return(base_ops[[.Generic]](e1, e2)), S7_error_method_not_found = function(cnd) cnd)
5. │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
6. │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
7. │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
8. └─base_ops[[.Generic]](e1, e2)
9. ├─S7::S7_dispatch()
10. └─ggplot2 (local) `method(+, list(ggplot2::ggplot, class_any))`(...)
11. └─ggplot2:::add_ggplot(e1, e2, e2name)
12. ├─ggplot2::ggplot_add(object, p, objectname)
13. └─ggplot2:::ggplot_add.default(object, p, objectname)
14. └─ggplot2::update_ggplot(object = object, plot = plot, ...)
15. ├─S7::S7_dispatch()
16. └─ggplot2 (local) `method(update_ggplot, list(ggplot2::theme, ggplot2::ggplot))`(...)
17. └─S7::set_props(plot, theme = add_theme(plot@theme, object))
18. └─S7::`props<-`(`*tmp*`, value = list(...))
19. └─S7::validate(object)
── Error ('test_triplot.R:112:3'): check plot.calculate_triplot function for FI ──
Error: <ggplot2::ggplot> object properties are invalid:
- @labels must be <ggplot2::labels>, not <character>
Backtrace:
▆
1. ├─base::plot(apartments_tri, abbrev_labels = 5) at test_triplot.R:112:3
2. └─triplot:::plot.triplot(apartments_tri, abbrev_labels = 5)
3. └─S7:::Ops.S7_object(p3, theme(axis.title = element_text(size = axis_lab_size)))
4. ├─base::tryCatch(return(base_ops[[.Generic]](e1, e2)), S7_error_method_not_found = function(cnd) cnd)
5. │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
6. │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
7. │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
8. └─base_ops[[.Generic]](e1, e2)
9. ├─S7::S7_dispatch()
10. └─ggplot2 (local) `method(+, list(ggplot2::ggplot, class_any))`(...)
11. └─ggplot2:::add_ggplot(e1, e2, e2name)
12. ├─ggplot2::ggplot_add(object, p, objectname)
13. └─ggplot2:::ggplot_add.default(object, p, objectname)
14. └─ggplot2::update_ggplot(object = object, plot = plot, ...)
15. ├─S7::S7_dispatch()
16. └─ggplot2 (local) `method(update_ggplot, list(ggplot2::theme, ggplot2::ggplot))`(...)
17. └─S7::set_props(plot, theme = add_theme(plot@theme, object))
18. └─S7::`props<-`(`*tmp*`, value = list(...))
19. └─S7::validate(object)
[ FAIL 2 | WARN 3 | SKIP 0 | PASS 74 ]
Error: Test failures
Execution halted
- checking PDF version of manual ... OK
- checking HTML version of manual ... OK
- checking for non-standard things in the check directory ... OK
- checking for detritus in the temp directory ... OK
- DONE
Status: 2 ERRORs