Skip to content

Commit

Permalink
Update R-package/R/xgboost.R
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Mayer <[email protected]>
  • Loading branch information
david-cortes and mayer79 authored Jun 29, 2024
1 parent 7628e3a commit 970abf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R-package/R/xgboost.R
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ process.x.and.col.args <- function(
if (any(idx != floor(idx))) {
stop(
"'interaction_constraints' must contain only integer indices. Got non-integer: ",
paste(head(idx[which(idx != floor(idx))]), collapse = ", ")
paste(utils::head(idx[which(idx != floor(idx))]), collapse = ", ")
)
}
}
Expand Down

0 comments on commit 970abf5

Please sign in to comment.