Skip to content

Commit

Permalink
check_predictions checks formula
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Nov 21, 2024
1 parent e5d0a6d commit 2f8464c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: performance
Title: Assessment of Regression Models Performance
Version: 0.12.4.5
Version: 0.12.4.6
Authors@R:
c(person(given = "Daniel",
family = "Lüdecke",
Expand Down
6 changes: 6 additions & 0 deletions R/check_predictions.R
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@ check_predictions.default <- function(object,
verbose = TRUE,
...) {
.is_model_valid(object)
# check_predictions() can't handle exotic formula notation
insight::formula_ok(
object,
action = "error",
prefix_msg = "Posterior predictive checks failed due to an incompatible model formula." # nolint
)

# retrieve model information
minfo <- insight::model_info(object, verbose = FALSE)
Expand Down

0 comments on commit 2f8464c

Please sign in to comment.