Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[R] Rename slice -> xgb.slice.DMatrix #10017

Merged
merged 1 commit into from
Jan 30, 2024

Conversation

david-cortes
Copy link
Contributor

ref #9810

Currently, xgboost registers an S3 method "slice", and defines it for the DMatrix class.

This is problematic in R, since a widely used library, {dplyr}, also defines a generic slice method with implementations for data frames and variants, and extensions like {dbplyr} and similar define it for more object classes based on dplyr's signature.

This PR renames it to xgb.slice.DMatrix, just like there is xgb.slice.Booster, in order to avoid conflicts with other commonly used R frameworks.

@trivialfis trivialfis merged commit 5e00a71 into dmlc:master Jan 30, 2024
23 of 27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants