Skip to content

Commit

Permalink
lintr
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Oct 29, 2023
1 parent 3fbf629 commit 4aeb626
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions R/check_predictions.R
Original file line number Diff line number Diff line change
Expand Up @@ -365,14 +365,20 @@ print.performance_pp_check <- function(x, verbose = TRUE, ...) {
if (is.numeric(original)) {
if (min(replicated) > min(original)) {
insight::print_color(
insight::format_message("Warning: Minimum value of original data is not included in the replicated data.", "Model may not capture the variation of the data."), # nolint
insight::format_message(
"Warning: Minimum value of original data is not included in the replicated data.",
"Model may not capture the variation of the data."
),
"red"
)
}

if (max(replicated) < max(original)) {
insight::print_color(
insight::format_message("Warning: Maximum value of original data is not included in the replicated data.", "Model may not capture the variation of the data."), # nolint
insight::format_message(
"Warning: Maximum value of original data is not included in the replicated data.",
"Model may not capture the variation of the data."
),
"red"
)
}
Expand Down

0 comments on commit 4aeb626

Please sign in to comment.