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-package] remove support for '...' in slice() #4872

Merged
merged 3 commits into from
Dec 10, 2021

Conversation

jameslamb
Copy link
Collaborator

Contributes to #4226 and #4543.

This PR removes support for passing anything through ... in lgb.Dataset.slice() and Dataset$slice().

Notes for Reviewers

v3.3.0 and v3.3.1 contain a deprecation warning about this change.

@@ -1082,19 +1051,19 @@ dimnames.lgb.Dataset <- function(x) {
#' labels <- lightgbm::get_field(dsub, "label")
#' }
#' @export
slice <- function(dataset, ...) {
slice <- function(dataset, idxset) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for reviewers wondering how it is ok to remove this ... when it wasn't for predict.lgb.Booster() (#4857 (comment))... this situation is different because slice() is not a generic exported from base R.

@StrikerRUS StrikerRUS changed the title [R-package] remove support for '...' in slice() [R-package] remove support for '...' in slice() Dec 10, 2021
@StrikerRUS StrikerRUS merged commit 1114ec8 into master Dec 10, 2021
@StrikerRUS StrikerRUS deleted the dataset-slice-no-dots branch December 10, 2021 00:22
@StrikerRUS StrikerRUS mentioned this pull request Jan 6, 2022
13 tasks
@jameslamb jameslamb mentioned this pull request Oct 7, 2022
40 tasks
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants