From dd1b6e8ad546cef61ccc7103e821a2f1d3380b22 Mon Sep 17 00:00:00 2001 From: "Brenton M. Wiernik" Date: Thu, 18 Apr 2024 12:37:06 -0500 Subject: [PATCH] Fix return class of check_model() patchwork 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 }