-
-
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
[R] could XGBoosterPredict_R be removed? #8687
Comments
Thank you for checking the code! Please remove the function. At the time of writing the new function, I talked with others and was told that the C package is considered a part of the interface. I guess it's not really an issue for XGBoost since we never publish any formal document about the R-C packagae. |
Ok great, thanks very much! I'll put up a PR shortly.
I agree with treating this as a private interface. I'd be surprised to learn that there are many use cases for others to link to the R-to-C library, instead of either using the C API directly or the R package directly. |
#6819 introduced a new R-to-C interface for predicting, replacing
XGBoosterPredict_R()
.As of that PR,
XGBoosterPredict_R()
is no longer used.Would you support a PR to remove it?
Why I think it should be removed
I don't think that would be a user-facing breaking change, unless this project supports other R packages linking against the
lib_xgboost.{so,dll,dylib}
built for the R package, or supports invoking those R-to-C entrypoints directly from R code with:::
.And removing it would have the following benefits:
How I found this
used covr to find bits of code not covered by tests (click me)
Ran the following to generate a coverage report.
That showed the following coverage:
And I saw in the clickable report that
XGBoosterPredict_R
is never called by any test code.The text was updated successfully, but these errors were encountered: