Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
be-marc committed Jan 16, 2025
1 parent d88e493 commit afce34c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/Task.R
Original file line number Diff line number Diff line change
Expand Up @@ -1234,7 +1234,7 @@ task_check_col_roles = function(task, new_roles, ...) {
#' @rdname task_check_col_roles
#' @export
task_check_col_roles.Task = function(task, new_roles, ...) {
for (role in c("group", "weight", "name", "offset")) {
for (role in c("group", "weight", "name")) {
if (length(new_roles[[role]]) > 1L) {
stopf("There may only be up to one column with role '%s'", role)
}
Expand Down

0 comments on commit afce34c

Please sign in to comment.