-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
Update R parameter constructor. #11083
Comments
Converted from #11072 (comment) . |
Added a PR with tests: #11084 To address the other points:
We've been adding all new non-method functions with the
I think the closer the R docs stay to the original .rst, the easier it'd be to update them later on. The .rst file doesn't manually break lines, relying on sphinx doing the line wrapping instead. Current logic (nolint) makes it easy to copy-paste from them, which is how the file was generated.
That's already checked by
We haven't decided on that aspect yet, but we've already established that we're going to do big breaking changes with the next major release. There will be no deprecation cycle, other than for a few renames. |
Thanks very much for the tests and explanation @david-cortes . If the decisions about continuing the use of names with The point about copying directly from other non-R docs is a good justification to ignore line-length preferences there, I hadn't considered that it was literally copying and pasting. There's just one thing I want to clarify:
Line 50 in f4f3bd4
It's for those reasons that I think the |
That could potentially bring problems later on when
I don't think that'd matter much since the signature that's written into the .Rd file gets post-processed by
Should be fixed here: #11090 |
#11090 addresses the last concern I had, thank you for that! This can be closed when that's merged. |
Thanks for the
@
, sorry I did not get to it before this was merged.I think it's a great idea, and would definitely be helpful for interactive development.
Some suggestions (to consider in follow-ups, given that this was already merged):
NULL
items show up in the return value.
in them need to be preserved for backwards compatibility, but I'd stop adding new ones (e.g. I'd preferxgb_params
toxgb.params
)# nolint
commentsxgboost/R-package/R/xgb.train.R
Line 811 in 85ccb8f
I also would have asked for a little research supporting it being safe to change
xgb.parameters
toxgb.model.parameters
without a deprecation cycle. For example, it looks to me like nothing on CRAN is currently usingxgb.parameters
(https://github.com/search?q=org%3Acran%20%22xgb.parameters%22&type=code), so I guess it at least won't break anything on CRAN. (I don't recall where the discussion aboutxgboost2
vs. releasing this as a new version ofxgboost
ended, disregard this last comment if the plan is to release a new package).Originally posted by @jameslamb in #11072 (comment)
The text was updated successfully, but these errors were encountered: