-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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] Handle integer types more accurate in R-to-C interface #4291
Conversation
Cannot verify proposed changes due to
and those compilation warnings were presented only in MSVC jobs. So leaving this PR in a draft for some time to let MiKTeX get healthy. |
oh no! I can at least pull this PR and test things in my local environment with R. Hopefully the MiKTeX issues are resolved quickly this time 😬 |
Thank you very much! I remember you don't have an easy access to Windows environment. I think there is no rush at all. |
Ha, look! MSVC R-package jobs are already green! Let me check logs right now then. |
Tail ( because there are dozens of warnings from Eigen library) of the compilation logs from current
And the same from this PR:
|
/gha run r-solaris Workflow Solaris CRAN check has been triggered! 🚀 solaris-x86-patched: https://builder.r-hub.io/status/lightgbm_3.2.1.99.tar.gz-9274e817e3e94137a1df72872ac00067 |
/gha run r-valgrind Workflow R valgrind tests has been triggered! 🚀 Status: success ✔️. |
Ha yes, I have a laptop from 2014 running Windows 10. The only things I have on it are things for use on this project: Visual Studio, CMake, git, RStudio, R, and Rtools, but it usually takes 20-30 minutes of installing updates when I turn it on, just because I use it so infrequently. |
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.
This is a nice cleanup, thank you! I checked logs and don't see these warnings any more.
By the way, this made me think. We should have done this a LONG time ago and I apologize for not doing it sooner...could you add your name to the list of co-authors at https://github.com/microsoft/LightGBM/blob/c629cb0b6bd2830894b710cbd4d8241b82ac3105/R-package/DESCRIPTION? Up to you if you'd like to do it in this PR or a separate one, either is ok with me.
Oh, thank you!
|
@StrikerRUS I would support either I think you have made more contributions to the R package than others who are already listed as From https://journal.r-project.org/archive/2012-1/RJournal_2012-1_Hornik~et~al.pdf
|
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. |
Fix compilation warnings like the following one
Checked all
Rf_asInteger
andINTEGER
calls and tried to bring data types in the consistency with original ones fromhttps://github.com/microsoft/LightGBM/blob/master/include/LightGBM/c_api.h.