-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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] factored dependency 'magrittr' out of R package #2334
Conversation
Just rebased this to |
@jameslamb Can we merge this? If so, I'll be able to remove |
Seems that one file is in conflict. Let me rebase and run the tests manually (because I haven't done #2335 yet). |
Ok we currently have 4 failing tests:
The "training continuation" one exists on |
4fcda45
to
4d84a72
Compare
4d84a72
to
da94339
Compare
R-package/R/lgb.model.dt.tree.R
Outdated
# Get corresponding feature names. Positions in split_feature_indx | ||
# which are NA will result in an NA feature name | ||
feature_names <- parsed_json_model$feature_names[split_feature_indx] | ||
tree_dt[, split_feaure := feature_names] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WOW I think this is why the tests were failing for me on this build. typo: split_feaure
😆
testing now
Alright I've figured out the three test errors I introduced. R unit tests now all work. I need to fix the "training continuation works" one but this PR doesn't need to wait on that. @Laurae2 could you take one more look at this PR and let me know if I could merge? |
@jameslamb Please remove this dependency from here as well. Line 232 in e776582
|
done. Good catch, I forgot we do that. I did a |
908f54e
to
6414b57
Compare
Thanks! |
6414b57
to
d7ba1ce
Compare
I just rebased this PR to Tests for the R package are passing locally (see below)
Once all CI checks pass, I'm going to merge this. |
@Laurae2 in this PR, I propose that we completely factor out the dependency
magrittr
, in the interest of reducinglightgbm
's dependency footprint. I knowmagrittr
itself has minimal additional dependencies, but in general I think we should strive to keeplightgbm
as light as possible and I feel this particular dependency isn't providing a lot of value.