Skip to content

Commit

Permalink
Update R/caretPredict.R
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
zachmayer and coderabbitai[bot] authored Dec 17, 2024
1 parent 8e076af commit 4e7346a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/caretPredict.R
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ caretPredict <- function(object, newdata = NULL, excluded_class_id = 1L, aggrega
#' @return The output of the `train` function.
#' @keywords internal
caretTrain <- function(local_args, global_args, continue_on_fail = FALSE, trim = TRUE, aggregate_resamples = TRUE) {
stopifnot(is.logical(aggregate_resamples), length(aggregate_resamples) == 1L)
# Combine args
# I think my handling here is correct (update globals with locals, which allows locals be partial)
# but it would be nice to have some tests
Expand Down

0 comments on commit 4e7346a

Please sign in to comment.