Skip to content

Commit

Permalink
cli_abort for make_group updated. Fixes tidymodels#508
Browse files Browse the repository at this point in the history
  • Loading branch information
PriKalra committed Aug 15, 2024
1 parent 4195508 commit f34e00d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/make_groups.R
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ validate_group <- function(group, data, call = rlang::caller_env()) {
)
}
if (!any(names(data) == group)) {
cli_abort("`group` should be a column in `data`.", call = call)
cli_abort("{.arg {group}} should be a column in {.arg {data}}.", call = call)
}

group
Expand Down

0 comments on commit f34e00d

Please sign in to comment.