Hi, I am trying to submit an R interface for CORELS (Certifiably Optimal Rule Lists). However, I've had a lot of difficulty getting this to compile and run on Windows. In its current state, it compiles on Windows but crashes when I try to run it. Am I able to submit this without Windows support, or could somebody help us with supporting Windows? The code is at https://github.com/saligrama/rcorels, and the main project is available at https://corels.eecs.harvard.edu. Thanks! -Aditya Saligrama
[R-pkg-devel] Submitting CORELS (Certifiably Optimal Rule Lists) package with/without Windows support
5 messages · Aditya Saligrama, Ralf Stubner, Mark van der Loo
On 20.12.18 02:54, Aditya Saligrama wrote:
I am trying to submit an R interface for CORELS (Certifiably Optimal Rule Lists). However, I've had a lot of difficulty getting this to compile and run on Windows. In its current state, it compiles on Windows but crashes when I try to run it. Am I able to submit this without Windows support, or could somebody help us with supporting Windows? The code is at https://github.com/saligrama/rcorels, and the main project is available at https://corels.eecs.harvard.edu.
What errors doe you get? Your package seems to require GMP and GSL libraries, which can impose problems on Windows if not handled correctly. Have a look at CRAN for how other packages using these libraries handle it. Greetinga Ralf
Ralf Stubner Senior Software Engineer / Trainer daqana GmbH Dortustra?e 48 14467 Potsdam T: +49 331 23 61 93 11 F: +49 331 23 61 93 90 M: +49 162 20 91 196 Mail: ralf.stubner at daqana.com Sitz: Potsdam Register: AG Potsdam HRB 27966 Ust.-IdNr.: DE300072622 Gesch?ftsf?hrer: Dr.-Ing. Stefan Knirsch, Prof. Dr. Dr. Karl-Kuno Kunze -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: <https://stat.ethz.ch/pipermail/r-package-devel/attachments/20181220/9c5cc1d5/attachment.sig>
I was able to get the package to compile on Windows by emulating the way the sbrl package builds in Windows support. However, when I try to run the package on Windows, R completely crashes and exits to the desktop. Would you have any suggestions on how to debug or fix this? Thanks, -Aditya Saligrama
On Dec 20 2018, at 3:00 am, Ralf Stubner <ralf.stubner at daqana.com> wrote:
On 20.12.18 02:54, Aditya Saligrama wrote:
I am trying to submit an R interface for CORELS (Certifiably Optimal Rule Lists). However, I've had a lot of difficulty getting this to compile and run on Windows. In its current state, it compiles on Windows but crashes when I try to run it. Am I able to submit this without Windows support, or could somebody help us with supporting Windows? The code is at https://github.com/saligrama/rcorels, and the main project is available at https://corels.eecs.harvard.edu.
What errors doe you get? Your package seems to require GMP and GSL libraries, which can impose problems on Windows if not handled correctly. Have a look at CRAN for how other packages using these libraries handle it. Greetinga Ralf -- Ralf Stubner Senior Software Engineer / Trainer daqana GmbH Dortustra?e 48 14467 Potsdam T: +49 331 23 61 93 11 F: +49 331 23 61 93 90 M: +49 162 20 91 196 Mail: ralf.stubner at daqana.com Sitz: Potsdam Register: AG Potsdam HRB 27966 Ust.-IdNr.: DE300072622 Gesch?ftsf?hrer: Dr.-Ing. Stefan Knirsch, Prof. Dr. Dr. Karl-Kuno Kunze
______________________________________________ R-package-devel at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel
On 20.12.18 13:52, Aditya Saligrama wrote:
I was able to get the package to compile on Windows by emulating the way the sbrl package builds in Windows support. However, when I try to run the package on Windows, R completely crashes and exits to the desktop. Would you have any suggestions on how to debug or fix this?
Start R from a command prompt. This way you might catch the error message when R exits. Alternatively you could run R (or Rgui) in the gdb debugger: cmd> gdb.exe Rgui.exe gdb> run R> ... See http://sourceware.org/gdb/current/onlinedocs/gdb/ for more info on gdb. Greetings Ralf
Ralf Stubner Senior Software Engineer / Trainer daqana GmbH Dortustra?e 48 14467 Potsdam T: +49 331 23 61 93 11 F: +49 331 23 61 93 90 M: +49 162 20 91 196 Mail: ralf.stubner at daqana.com Sitz: Potsdam Register: AG Potsdam HRB 27966 Ust.-IdNr.: DE300072622 Gesch?ftsf?hrer: Dr.-Ing. Stefan Knirsch, Prof. Dr. Dr. Karl-Kuno Kunze -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: <https://stat.ethz.ch/pipermail/r-package-devel/attachments/20181220/e18e7262/attachment.sig>
Dear Aditya, You ask: | Am I able to submit this without Windows support, or could somebody help us with supporting Windows? The CRAN policy[1] is pretty clear about this: "Package authors should make all reasonable efforts to provide cross-platform portable code. Packages will not normally be accepted that do not run on at least two of the major R platforms." and also "It should be normal for those without Windows machines of their own to use the winbuilder service to check a package before submission. " Best wishes, Mark [1] https://cran.r-project.org/web/packages/policies.html On Thu, Dec 20, 2018 at 2:07 PM Ralf Stubner <ralf.stubner at daqana.com> wrote:
On 20.12.18 13:52, Aditya Saligrama wrote:
I was able to get the package to compile on Windows by emulating the way the sbrl package builds in Windows support. However, when I try to run the package on Windows, R completely crashes and exits to the desktop. Would you have any suggestions on how to debug or fix this?
Start R from a command prompt. This way you might catch the error message when R exits. Alternatively you could run R (or Rgui) in the gdb debugger: cmd> gdb.exe Rgui.exe gdb> run R> ... See http://sourceware.org/gdb/current/onlinedocs/gdb/ for more info on gdb. Greetings Ralf -- Ralf Stubner Senior Software Engineer / Trainer daqana GmbH Dortustra?e 48 14467 Potsdam T: +49 331 23 61 93 11 F: +49 331 23 61 93 90 M: +49 162 20 91 196 Mail: ralf.stubner at daqana.com Sitz: Potsdam Register: AG Potsdam HRB 27966 Ust.-IdNr.: DE300072622 Gesch?ftsf?hrer: Dr.-Ing. Stefan Knirsch, Prof. Dr. Dr. Karl-Kuno Kunze
______________________________________________ R-package-devel at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel