Skip to content

Commit

Permalink
use format_alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Apr 25, 2024
1 parent 2269146 commit 8d9d366
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/get_marginalmeans.R
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@
# Find categorical predictors
at <- predictors[!vapply(data[predictors], is.numeric, logical(1))]
if (!length(at) || all(is.na(at))) {
stop("Model contains no categorical factor. Please specify 'at'.", call. = FALSE)
insight::format_error("Model contains no categorical factor. Please specify 'at'.")
}
message("We selected `at = c(", toString(paste0('"', at, '"')), ")`.")
insight::format_alert("We selected `at = c(", toString(paste0('"', at, '"')), ")`.")
}

list(at = at)
Expand Down

0 comments on commit 8d9d366

Please sign in to comment.