Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Oct 22, 2024
1 parent b720518 commit 1a52409
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions R/simulate_residuals.R
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,10 @@
#' @export
simulate_residuals <- function(x, iterations = 250, ...) {
insight::check_if_installed("DHARMa")
# TODO (low priority): Note that DHARMa::simulateResiduals(x, ...) does its own checks for whether
# or not the model passed to it is supported, do we want to use this or do our
# own checks so we can supply our own error message?
# TODO (low priority): Note that DHARMa::simulateResiduals(x, ...) does its
# own checks for whether or not the model passed to it is supported, do we
# want to use this or do our own checks so we can supply our own error
# message?
if (iterations < 2) {
insight::format_error("`iterations` must be at least 2.")
}
Expand Down

0 comments on commit 1a52409

Please sign in to comment.