From 8bd3efab38e98d5914c58fa834f6bf2aaf3b3093 Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 3 Dec 2024 21:49:35 +0100 Subject: [PATCH] fix --- R/plot.check_distribution.R | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/R/plot.check_distribution.R b/R/plot.check_distribution.R index 27c3ab0f4..baea7bbf5 100644 --- a/R/plot.check_distribution.R +++ b/R/plot.check_distribution.R @@ -108,7 +108,6 @@ plot.see_check_distribution <- function(x, size_point = 2, panel = TRUE, ...) { theme_lucid() if (panel) { - insight::check_if_installed("patchwork") return(p1 / (p2 | p3) + patchwork::plot_layout(nrow = 2)) } else { return(list(p1, p2, p3)) @@ -183,8 +182,8 @@ plot.see_check_distribution_numeric <- function(x, theme_lucid() if (panel) { - p1 / (p2 | p3) + patchwork::plot_layout(nrow = 2L) + return(p1 / (p2 | p3) + patchwork::plot_layout(nrow = 2L)) } else { - list(p1, p2, p3) + return(list(p1, p2, p3)) } }