Skip to content

Commit

Permalink
correct length >1 conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpcouch committed Jun 12, 2024
1 parent f95369f commit 695540d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/collect_parameters.R
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ collect_params <- function(cols_map, model_metrics, candidates, workflows, blend
}

check_for_candidates <- function(model_metrics, candidates) {
if ((!inherits(candidates, "character")) |
if ((!inherits(candidates, "character")) ||
(!candidates %in% names(model_metrics))) {
cli_abort(
"The `candidates` argument to `collect_parameters()` must be the name
Expand Down

0 comments on commit 695540d

Please sign in to comment.