Skip to content

Commit

Permalink
check_model error suggestions are not complete (#342)
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Apr 29, 2024
1 parent 90be1b5 commit 7dc72a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: see
Title: Model Visualisation Toolbox for 'easystats' and 'ggplot2'
Version: 0.8.4
Version: 0.8.4.1
Authors@R:
c(person(given = "Daniel",
family = "Lüdecke",
Expand Down
5 changes: 3 additions & 2 deletions R/plots.R
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ plots <- function(...,
if (inherits(pw_drawn, "simpleError")) {
msg_display1 <- "\n- To fix this issue, please make the window larger."
msg_display3 <- "\n- If this still doesn't resolve your problems, you may check whether your apps are rescaled. On Windows, this can be done in the display settings (Start > Settings > System > Display, \"Scale and layout\"). Reduce the scaling and try again." # nolint
msg_display4 <- "\n- Finally, you can try to decrease the base font-size of your theme before plotting. Load `library(ggplot2)` and run: `theme_set(theme_classic(base_size = 6))`" # nolint
msg_display4 <- "\n- You can try to decrease the base font-size of your theme before plotting. Load `library(ggplot2)` and run: `theme_set(theme_classic(base_size = 6))`" # nolint
msg_display5 <- "\n- Finally, make sure to update your packages (in particular `ggplot2` and `patchwork`) using `update.packages(ask = FALSE)`." # nolint

if (Sys.getenv("RSTUDIO") == "1") {
msg <- "The RStudio 'Plots' window is too small to show this set of plots."
Expand All @@ -117,6 +118,6 @@ plots <- function(...,
}

msg <- paste(msg, "You may try one of the following steps to resolve this problem.")
insight::format_error(msg, msg_display1, msg_display2, msg_display3, msg_display4)
insight::format_error(msg, msg_display1, msg_display2, msg_display3, msg_display4, msg_display5)
}
}

0 comments on commit 7dc72a6

Please sign in to comment.