Skip to content

Commit 4f82ee9

Browse files
committed
removed the distinct() check from set_fit()
1 parent 3fbc3f8 commit 4f82ee9

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

R/aaa_models.R

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -382,15 +382,11 @@ set_model_arg <- function(model, eng, parsnip, original, func, has_submodel) {
382382
eng, " engine. You cannot overwrite arguments.", call. = FALSE)
383383
}
384384

385-
# TODO cant currently use `distinct()` on a list column.
386-
# Use `vctrs::vctrs_duplicated()` instead
387385
updated <- try(dplyr::bind_rows(old_args, new_arg), silent = TRUE)
388386
if (inherits(updated, "try-error")) {
389387
stop("An error occured when adding the new argument.", call. = FALSE)
390388
}
391389

392-
updated <- dplyr::distinct(updated, engine, parsnip, original, has_submodel)
393-
394390
current[[paste0(model, "_args")]] <- updated
395391

396392
invisible(NULL)

0 commit comments

Comments
 (0)