-
-
Notifications
You must be signed in to change notification settings - Fork 106
check_model(model) is no longer working #905
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
ff9525c
dfc8f1f
9c01cf3
4edacbc
ef03370
bfe7954
408efff
86e16a3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -181,6 +181,31 @@ | |
| #' If `check_model()` doesn't work as expected, try setting `verbose = TRUE` to | ||
| #' get hints about possible problems. | ||
| #' | ||
| #' If your plots are not rendering correctly in your IDE or you receive an error | ||
| #' stating that the viewport is too small, try the following steps to resolve | ||
| #' the issue: | ||
| #' | ||
| #' - *Enlarge the plotting window:* The most common cause is that the plotting | ||
| #' pane is simply too small. If you are using RStudio, click and drag the | ||
| #' edges of the 'Plots' pane to increase its dimensions, then try plotting | ||
| #' again. | ||
| #' - *Reset your IDE zoom settings:* If resizing the window doesn't help, your | ||
| #' IDE's zoom level might be causing scaling issues. In RStudio, navigate to | ||
| #' the menu bar and select *View > Actual Size* to reset the zoom. If you are | ||
| #' using a different IDE, look for a similar zoom reset option. | ||
| #' - *Adjust Windows display scaling:* On Windows, system-wide display scaling can | ||
| #' sometimes interfere with graphical outputs in R. You can adjust this in | ||
| #' your system settings: Go to *Start > Settings > System > Display* and locate | ||
| #' the `"Scale and layout"` section. Try reducing the scaling percentage (e.g., | ||
| #' to 100%) and restart your IDE. | ||
| #' - *Decrease the base font size:* As a code-level workaround, you can reduce the | ||
| #' base font size of your plots to help them fit into smaller viewports. If | ||
| #' you are using `{ggplot2}`, load the library and adjust your theme before | ||
| #' plotting. For example: `theme_set(theme_classic(base_size = 6))`. | ||
|
Comment on lines
+203
to
+204
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To adhere to the repository style guide (line 67) and maintain consistency with the rest of the documentation, please use the #' you are using **ggplot2**, load the library and adjust your theme before
#' plotting. For example: `ggplot2::theme_set(ggplot2::theme_classic(base_size = 6))`. References
|
||
| #' - *Update relevant packages:* Finally, ensure your graphics and layout packages | ||
| #' are up to date. You can update your packages (paying special attention to | ||
| #' `{ggplot2}` and `{patchwork}`) by running `update.packages(ask = FALSE)`. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use the #' **ggplot2** and **patchwork**) by running `utils::update.packages(ask = FALSE)`. References
|
||
| #' | ||
| #' @family functions to check model assumptions and and assess model quality | ||
| #' | ||
| #' @examplesIf require("lme4") && FALSE | ||
|
|
@@ -202,7 +227,7 @@ | |
|
|
||
| #' @rdname check_model | ||
| #' @export | ||
| check_model.default <- function( | ||
|
Check warning on line 230 in R/check_model.R
|
||
| model = NULL, | ||
| panel = TRUE, | ||
| check = "all", | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.