R Under development (unstable) (2024-09-04 r87094 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > # 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(GroupComparison) Warning message: replacing previous import 'dplyr::combine' by 'gridExtra::combine' when loading 'GroupComparison' > > test_check("GroupComparison") [ FAIL 8 | WARN 2 | SKIP 0 | PASS 17 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-split_violin_plot.R:17:3'): split_violin_plot works with valid input ── Error in `geom_split_violin(trim = FALSE, size = 0.5, show.legend = FALSE, adjust = 2.2)`: Problem while converting geom to grob. ℹ Error occurred in the 1st layer. Caused by error in `loadNamespace()`: ! there is no package called 'plyr' Backtrace: ▆ 1. ├─GroupComparison::split_violin_plot(...) at test-split_violin_plot.R:17:3 2. │ └─gridExtra::grid.arrange(p, legend, ncol = 2, widths = c(3, 1)) 3. │ └─gridExtra::arrangeGrob(...) 4. │ └─base::lapply(grobs[toconv], ggplot2::ggplotGrob) 5. │ └─ggplot2 (local) FUN(X[[i]], ...) 6. │ ├─ggplot2::ggplot_gtable(ggplot_build(x)) 7. │ └─ggplot2:::ggplot_gtable.ggplot_built(ggplot_build(x)) 8. │ └─ggplot2:::by_layer(...) 9. │ ├─rlang::try_fetch(...) 10. │ │ ├─base::tryCatch(...) 11. │ │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers) 12. │ │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 13. │ │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler) 14. │ │ └─base::withCallingHandlers(...) 15. │ └─ggplot2 (local) f(l = layers[[i]], d = data[[i]]) 16. │ └─l$draw_geom(d, layout) 17. │ └─ggplot2 (local) draw_geom(..., self = self) 18. │ └─self$geom$draw_layer(...) 19. │ └─ggplot2 (local) draw_layer(..., self = self) 20. │ └─base::lapply(...) 21. │ └─ggplot2 (local) FUN(X[[i]], ...) 22. │ ├─rlang::inject(self$draw_panel(data, panel_params, coord, !!!params)) 23. │ └─self$draw_panel(data, panel_params, coord, draw_quantiles = NULL) 24. │ └─ggplot2 (local) draw_panel(..., self = self) 25. │ └─base::lapply(...) 26. │ └─ggplot2 (local) FUN(X[[i]], ...) 27. │ └─self$draw_group(group, panel_params, coord, ...) 28. │ └─GroupComparison (local) draw_group(..., self = self) 29. ├─base::loadNamespace(x) 30. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 31. │ │ └─base (local) withOneRestart(expr, restarts[[1L]]) 32. │ │ └─base (local) doWithOneRestart(return(expr), restart) 33. │ └─base::stop(cond) 34. └─rlang (local) ``(``) 35. └─handlers[[1L]](cnd) 36. └─cli::cli_abort(...) 37. └─rlang::abort(...) ── Error ('test-split_violin_plot.R:31:3'): axis labels are customizable ─────── Error in `geom_split_violin(trim = FALSE, size = 0.5, show.legend = FALSE, adjust = 2.2)`: Problem while converting geom to grob. ℹ Error occurred in the 1st layer. Caused by error in `loadNamespace()`: ! there is no package called 'plyr' Backtrace: ▆ 1. ├─GroupComparison::split_violin_plot(...) at test-split_violin_plot.R:31:3 2. │ └─gridExtra::grid.arrange(p, legend, ncol = 2, widths = c(3, 1)) 3. │ └─gridExtra::arrangeGrob(...) 4. │ └─base::lapply(grobs[toconv], ggplot2::ggplotGrob) 5. │ └─ggplot2 (local) FUN(X[[i]], ...) 6. │ ├─ggplot2::ggplot_gtable(ggplot_build(x)) 7. │ └─ggplot2:::ggplot_gtable.ggplot_built(ggplot_build(x)) 8. │ └─ggplot2:::by_layer(...) 9. │ ├─rlang::try_fetch(...) 10. │ │ ├─base::tryCatch(...) 11. │ │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers) 12. │ │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 13. │ │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler) 14. │ │ └─base::withCallingHandlers(...) 15. │ └─ggplot2 (local) f(l = layers[[i]], d = data[[i]]) 16. │ └─l$draw_geom(d, layout) 17. │ └─ggplot2 (local) draw_geom(..., self = self) 18. │ └─self$geom$draw_layer(...) 19. │ └─ggplot2 (local) draw_layer(..., self = self) 20. │ └─base::lapply(...) 21. │ └─ggplot2 (local) FUN(X[[i]], ...) 22. │ ├─rlang::inject(self$draw_panel(data, panel_params, coord, !!!params)) 23. │ └─self$draw_panel(data, panel_params, coord, draw_quantiles = NULL) 24. │ └─ggplot2 (local) draw_panel(..., self = self) 25. │ └─base::lapply(...) 26. │ └─ggplot2 (local) FUN(X[[i]], ...) 27. │ └─self$draw_group(group, panel_params, coord, ...) 28. │ └─GroupComparison (local) draw_group(..., self = self) 29. ├─base::loadNamespace(x) 30. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 31. │ │ └─base (local) withOneRestart(expr, restarts[[1L]]) 32. │ │ └─base (local) doWithOneRestart(return(expr), restart) 33. │ └─base::stop(cond) 34. └─rlang (local) ``(``) 35. └─handlers[[1L]](cnd) 36. └─cli::cli_abort(...) 37. └─rlang::abort(...) ── Error ('test-split_violin_plot.R:46:3'): y-axis breaks and limits can be customized ── Error in `geom_split_violin(trim = FALSE, size = 0.5, show.legend = FALSE, adjust = 2.2)`: Problem while converting geom to grob. ℹ Error occurred in the 1st layer. Caused by error in `loadNamespace()`: ! there is no package called 'plyr' Backtrace: ▆ 1. ├─GroupComparison::split_violin_plot(...) at test-split_violin_plot.R:46:3 2. │ └─gridExtra::grid.arrange(p, legend, ncol = 2, widths = c(3, 1)) 3. │ └─gridExtra::arrangeGrob(...) 4. │ └─base::lapply(grobs[toconv], ggplot2::ggplotGrob) 5. │ └─ggplot2 (local) FUN(X[[i]], ...) 6. │ ├─ggplot2::ggplot_gtable(ggplot_build(x)) 7. │ └─ggplot2:::ggplot_gtable.ggplot_built(ggplot_build(x)) 8. │ └─ggplot2:::by_layer(...) 9. │ ├─rlang::try_fetch(...) 10. │ │ ├─base::tryCatch(...) 11. │ │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers) 12. │ │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 13. │ │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler) 14. │ │ └─base::withCallingHandlers(...) 15. │ └─ggplot2 (local) f(l = layers[[i]], d = data[[i]]) 16. │ └─l$draw_geom(d, layout) 17. │ └─ggplot2 (local) draw_geom(..., self = self) 18. │ └─self$geom$draw_layer(...) 19. │ └─ggplot2 (local) draw_layer(..., self = self) 20. │ └─base::lapply(...) 21. │ └─ggplot2 (local) FUN(X[[i]], ...) 22. │ ├─rlang::inject(self$draw_panel(data, panel_params, coord, !!!params)) 23. │ └─self$draw_panel(data, panel_params, coord, draw_quantiles = NULL) 24. │ └─ggplot2 (local) draw_panel(..., self = self) 25. │ └─base::lapply(...) 26. │ └─ggplot2 (local) FUN(X[[i]], ...) 27. │ └─self$draw_group(group, panel_params, coord, ...) 28. │ └─GroupComparison (local) draw_group(..., self = self) 29. ├─base::loadNamespace(x) 30. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 31. │ │ └─base (local) withOneRestart(expr, restarts[[1L]]) 32. │ │ └─base (local) doWithOneRestart(return(expr), restart) 33. │ └─base::stop(cond) 34. └─rlang (local) ``(``) 35. └─handlers[[1L]](cnd) 36. └─cli::cli_abort(...) 37. └─rlang::abort(...) ── Error ('test-split_violin_plot.R:61:3'): outliers can be included or excluded ── Error in `geom_split_violin(trim = FALSE, size = 0.5, show.legend = FALSE, adjust = 2.2)`: Problem while converting geom to grob. ℹ Error occurred in the 1st layer. Caused by error in `loadNamespace()`: ! there is no package called 'plyr' Backtrace: ▆ 1. ├─GroupComparison::split_violin_plot(...) at test-split_violin_plot.R:61:3 2. │ └─gridExtra::grid.arrange(p, legend, ncol = 2, widths = c(3, 1)) 3. │ └─gridExtra::arrangeGrob(...) 4. │ └─base::lapply(grobs[toconv], ggplot2::ggplotGrob) 5. │ └─ggplot2 (local) FUN(X[[i]], ...) 6. │ ├─ggplot2::ggplot_gtable(ggplot_build(x)) 7. │ └─ggplot2:::ggplot_gtable.ggplot_built(ggplot_build(x)) 8. │ └─ggplot2:::by_layer(...) 9. │ ├─rlang::try_fetch(...) 10. │ │ ├─base::tryCatch(...) 11. │ │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers) 12. │ │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 13. │ │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler) 14. │ │ └─base::withCallingHandlers(...) 15. │ └─ggplot2 (local) f(l = layers[[i]], d = data[[i]]) 16. │ └─l$draw_geom(d, layout) 17. │ └─ggplot2 (local) draw_geom(..., self = self) 18. │ └─self$geom$draw_layer(...) 19. │ └─ggplot2 (local) draw_layer(..., self = self) 20. │ └─base::lapply(...) 21. │ └─ggplot2 (local) FUN(X[[i]], ...) 22. │ ├─rlang::inject(self$draw_panel(data, panel_params, coord, !!!params)) 23. │ └─self$draw_panel(data, panel_params, coord, draw_quantiles = NULL) 24. │ └─ggplot2 (local) draw_panel(..., self = self) 25. │ └─base::lapply(...) 26. │ └─ggplot2 (local) FUN(X[[i]], ...) 27. │ └─self$draw_group(group, panel_params, coord, ...) 28. │ └─GroupComparison (local) draw_group(..., self = self) 29. ├─base::loadNamespace(x) 30. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 31. │ │ └─base (local) withOneRestart(expr, restarts[[1L]]) 32. │ │ └─base (local) doWithOneRestart(return(expr), restart) 33. │ └─base::stop(cond) 34. └─rlang (local) ``(``) 35. └─handlers[[1L]](cnd) 36. └─cli::cli_abort(...) 37. └─rlang::abort(...) ── Error ('test-split_violin_plot.R:75:3'): confidence intervals (CI) can be toggled ── Error in `geom_split_violin(trim = FALSE, size = 0.5, show.legend = FALSE, adjust = 2.2)`: Problem while converting geom to grob. ℹ Error occurred in the 1st layer. Caused by error in `loadNamespace()`: ! there is no package called 'plyr' Backtrace: ▆ 1. ├─GroupComparison::split_violin_plot(...) at test-split_violin_plot.R:75:3 2. │ └─gridExtra::grid.arrange(p, legend, ncol = 2, widths = c(3, 1)) 3. │ └─gridExtra::arrangeGrob(...) 4. │ └─base::lapply(grobs[toconv], ggplot2::ggplotGrob) 5. │ └─ggplot2 (local) FUN(X[[i]], ...) 6. │ ├─ggplot2::ggplot_gtable(ggplot_build(x)) 7. │ └─ggplot2:::ggplot_gtable.ggplot_built(ggplot_build(x)) 8. │ └─ggplot2:::by_layer(...) 9. │ ├─rlang::try_fetch(...) 10. │ │ ├─base::tryCatch(...) 11. │ │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers) 12. │ │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 13. │ │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler) 14. │ │ └─base::withCallingHandlers(...) 15. │ └─ggplot2 (local) f(l = layers[[i]], d = data[[i]]) 16. │ └─l$draw_geom(d, layout) 17. │ └─ggplot2 (local) draw_geom(..., self = self) 18. │ └─self$geom$draw_layer(...) 19. │ └─ggplot2 (local) draw_layer(..., self = self) 20. │ └─base::lapply(...) 21. │ └─ggplot2 (local) FUN(X[[i]], ...) 22. │ ├─rlang::inject(self$draw_panel(data, panel_params, coord, !!!params)) 23. │ └─self$draw_panel(data, panel_params, coord, draw_quantiles = NULL) 24. │ └─ggplot2 (local) draw_panel(..., self = self) 25. │ └─base::lapply(...) 26. │ └─ggplot2 (local) FUN(X[[i]], ...) 27. │ └─self$draw_group(group, panel_params, coord, ...) 28. │ └─GroupComparison (local) draw_group(..., self = self) 29. ├─base::loadNamespace(x) 30. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 31. │ │ └─base (local) withOneRestart(expr, restarts[[1L]]) 32. │ │ └─base (local) doWithOneRestart(return(expr), restart) 33. │ └─base::stop(cond) 34. └─rlang (local) ``(``) 35. └─handlers[[1L]](cnd) 36. └─cli::cli_abort(...) 37. └─rlang::abort(...) ── Error ('test-split_violin_plot.R:89:3'): medians can be included or excluded ── Error in `geom_split_violin(trim = FALSE, size = 0.5, show.legend = FALSE, adjust = 2.2)`: Problem while converting geom to grob. ℹ Error occurred in the 1st layer. Caused by error in `loadNamespace()`: ! there is no package called 'plyr' Backtrace: ▆ 1. ├─GroupComparison::split_violin_plot(...) at test-split_violin_plot.R:89:3 2. │ └─gridExtra::grid.arrange(p, legend, ncol = 2, widths = c(3, 1)) 3. │ └─gridExtra::arrangeGrob(...) 4. │ └─base::lapply(grobs[toconv], ggplot2::ggplotGrob) 5. │ └─ggplot2 (local) FUN(X[[i]], ...) 6. │ ├─ggplot2::ggplot_gtable(ggplot_build(x)) 7. │ └─ggplot2:::ggplot_gtable.ggplot_built(ggplot_build(x)) 8. │ └─ggplot2:::by_layer(...) 9. │ ├─rlang::try_fetch(...) 10. │ │ ├─base::tryCatch(...) 11. │ │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers) 12. │ │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 13. │ │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler) 14. │ │ └─base::withCallingHandlers(...) 15. │ └─ggplot2 (local) f(l = layers[[i]], d = data[[i]]) 16. │ └─l$draw_geom(d, layout) 17. │ └─ggplot2 (local) draw_geom(..., self = self) 18. │ └─self$geom$draw_layer(...) 19. │ └─ggplot2 (local) draw_layer(..., self = self) 20. │ └─base::lapply(...) 21. │ └─ggplot2 (local) FUN(X[[i]], ...) 22. │ ├─rlang::inject(self$draw_panel(data, panel_params, coord, !!!params)) 23. │ └─self$draw_panel(data, panel_params, coord, draw_quantiles = NULL) 24. │ └─ggplot2 (local) draw_panel(..., self = self) 25. │ └─base::lapply(...) 26. │ └─ggplot2 (local) FUN(X[[i]], ...) 27. │ └─self$draw_group(group, panel_params, coord, ...) 28. │ └─GroupComparison (local) draw_group(..., self = self) 29. ├─base::loadNamespace(x) 30. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 31. │ │ └─base (local) withOneRestart(expr, restarts[[1L]]) 32. │ │ └─base (local) doWithOneRestart(return(expr), restart) 33. │ └─base::stop(cond) 34. └─rlang (local) ``(``) 35. └─handlers[[1L]](cnd) 36. └─cli::cli_abort(...) 37. └─rlang::abort(...) ── Error ('test-split_violin_plot.R:103:3'): number of observations (n) can be toggled ── Error in `geom_split_violin(trim = FALSE, size = 0.5, show.legend = FALSE, adjust = 2.2)`: Problem while converting geom to grob. ℹ Error occurred in the 1st layer. Caused by error in `loadNamespace()`: ! there is no package called 'plyr' Backtrace: ▆ 1. ├─GroupComparison::split_violin_plot(...) at test-split_violin_plot.R:103:3 2. │ └─gridExtra::grid.arrange(p, legend, ncol = 2, widths = c(3, 1)) 3. │ └─gridExtra::arrangeGrob(...) 4. │ └─base::lapply(grobs[toconv], ggplot2::ggplotGrob) 5. │ └─ggplot2 (local) FUN(X[[i]], ...) 6. │ ├─ggplot2::ggplot_gtable(ggplot_build(x)) 7. │ └─ggplot2:::ggplot_gtable.ggplot_built(ggplot_build(x)) 8. │ └─ggplot2:::by_layer(...) 9. │ ├─rlang::try_fetch(...) 10. │ │ ├─base::tryCatch(...) 11. │ │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers) 12. │ │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 13. │ │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler) 14. │ │ └─base::withCallingHandlers(...) 15. │ └─ggplot2 (local) f(l = layers[[i]], d = data[[i]]) 16. │ └─l$draw_geom(d, layout) 17. │ └─ggplot2 (local) draw_geom(..., self = self) 18. │ └─self$geom$draw_layer(...) 19. │ └─ggplot2 (local) draw_layer(..., self = self) 20. │ └─base::lapply(...) 21. │ └─ggplot2 (local) FUN(X[[i]], ...) 22. │ ├─rlang::inject(self$draw_panel(data, panel_params, coord, !!!params)) 23. │ └─self$draw_panel(data, panel_params, coord, draw_quantiles = NULL) 24. │ └─ggplot2 (local) draw_panel(..., self = self) 25. │ └─base::lapply(...) 26. │ └─ggplot2 (local) FUN(X[[i]], ...) 27. │ └─self$draw_group(group, panel_params, coord, ...) 28. │ └─GroupComparison (local) draw_group(..., self = self) 29. ├─base::loadNamespace(x) 30. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 31. │ │ └─base (local) withOneRestart(expr, restarts[[1L]]) 32. │ │ └─base (local) doWithOneRestart(return(expr), restart) 33. │ └─base::stop(cond) 34. └─rlang (local) ``(``) 35. └─handlers[[1L]](cnd) 36. └─cli::cli_abort(...) 37. └─rlang::abort(...) ── Error ('test-split_violin_plot.R:118:3'): custom legend labels are applied ── Error in `geom_split_violin(trim = FALSE, size = 0.5, show.legend = FALSE, adjust = 2.2)`: Problem while converting geom to grob. ℹ Error occurred in the 1st layer. Caused by error in `loadNamespace()`: ! there is no package called 'plyr' Backtrace: ▆ 1. ├─GroupComparison::split_violin_plot(...) at test-split_violin_plot.R:118:3 2. │ └─gridExtra::grid.arrange(p, legend, ncol = 2, widths = c(3, 1)) 3. │ └─gridExtra::arrangeGrob(...) 4. │ └─base::lapply(grobs[toconv], ggplot2::ggplotGrob) 5. │ └─ggplot2 (local) FUN(X[[i]], ...) 6. │ ├─ggplot2::ggplot_gtable(ggplot_build(x)) 7. │ └─ggplot2:::ggplot_gtable.ggplot_built(ggplot_build(x)) 8. │ └─ggplot2:::by_layer(...) 9. │ ├─rlang::try_fetch(...) 10. │ │ ├─base::tryCatch(...) 11. │ │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers) 12. │ │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 13. │ │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler) 14. │ │ └─base::withCallingHandlers(...) 15. │ └─ggplot2 (local) f(l = layers[[i]], d = data[[i]]) 16. │ └─l$draw_geom(d, layout) 17. │ └─ggplot2 (local) draw_geom(..., self = self) 18. │ └─self$geom$draw_layer(...) 19. │ └─ggplot2 (local) draw_layer(..., self = self) 20. │ └─base::lapply(...) 21. │ └─ggplot2 (local) FUN(X[[i]], ...) 22. │ ├─rlang::inject(self$draw_panel(data, panel_params, coord, !!!params)) 23. │ └─self$draw_panel(data, panel_params, coord, draw_quantiles = NULL) 24. │ └─ggplot2 (local) draw_panel(..., self = self) 25. │ └─base::lapply(...) 26. │ └─ggplot2 (local) FUN(X[[i]], ...) 27. │ └─self$draw_group(group, panel_params, coord, ...) 28. │ └─GroupComparison (local) draw_group(..., self = self) 29. ├─base::loadNamespace(x) 30. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 31. │ │ └─base (local) withOneRestart(expr, restarts[[1L]]) 32. │ │ └─base (local) doWithOneRestart(return(expr), restart) 33. │ └─base::stop(cond) 34. └─rlang (local) ``(``) 35. └─handlers[[1L]](cnd) 36. └─cli::cli_abort(...) 37. └─rlang::abort(...) [ FAIL 8 | WARN 2 | SKIP 0 | PASS 17 ] Error: Test failures Execution halted