From 5682cc0a94980dafc5af6e5c220462ce340c4868 Mon Sep 17 00:00:00 2001 From: "Brenton M. Wiernik" Date: Thu, 18 Apr 2024 15:45:19 -0400 Subject: [PATCH] Fix return class of check_model() patchwork (#339) Closes https://github.com/easystats/performance/issues/712 --- R/plot.check_model.R | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/R/plot.check_model.R b/R/plot.check_model.R index 05e683b8b..579d46f14 100644 --- a/R/plot.check_model.R +++ b/R/plot.check_model.R @@ -276,10 +276,10 @@ plot.see_check_model <- function(x, if (panel) { pw <- plots(p, n_columns = n_columns) .safe_print_plots(pw, ...) - invisible(pw) + return(invisible(pw)) + } else { + return(p) } - - p }