Skip to content

[R-pkg-devel] Submitting CORELS (Certifiably Optimal Rule Lists) package with/without Windows support

5 messages · Aditya Saligrama, Ralf Stubner, Mark van der Loo

#
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
#
On 20.12.18 02:54, Aditya Saligrama wrote:
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
#
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 13:52, Aditya Saligrama wrote:
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
#
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: