From murdoch.duncan at gmail.com  Wed Feb 15 16:14:25 2012
From: murdoch.duncan at gmail.com (Duncan Murdoch)
Date: Wed, 15 Feb 2012 10:14:25 -0500
Subject: [Rd] executable files R package
In-Reply-To: <CAEV=kBNoZ5ooTQVpQmsV-P4jbMekg=KSw==O=fwCMPGL71Dx0Q@mail.gmail.com>
References: <CAEV=kBNoZ5ooTQVpQmsV-P4jbMekg=KSw==O=fwCMPGL71Dx0Q@mail.gmail.com>
Message-ID: <4F3BCBD1.1050103@gmail.com>

On 13/02/2012 2:36 PM, sahir bhatnagar wrote:
> I am in the process of creating a package in R which calls
> pre-compiled C code i.e. '.exe' files in Windows.
>
> Since CRAN will not accept packages with binary code files, what are
> my options to meet the requirements while still including the
> executable file?

I think you should ask the CRAN administrators that, but my 
understanding is that they are unlikely to accept your package as 
described.  CRAN is interested in platform-neutral packages, and if you 
have an .exe, you're going to be Windows-only.

If you include the source code for that .exe and put together the 
Makefile to compile it, then they'd be more receptive, and someone might 
offer help to get it to run on other platforms if it doesn't on your 
first attempt.

If you don't want to include the .exe source (or can't), I think you 
should just publish it on your own web page.

Duncan Murdoch

> I read section 1.5.2 of the manual which mentions three options two of
> which involve negotiating with CRAN administrators. The third
> references the package Cairo which arranges to download additional
> software, but I don't see how this will allow my package to get
> accepted.
>
> It would seem that I need to ensure that my package works under both
> architectures (32 and 64 bit).
>
> 1) Would this be sufficient to get it accepted?
> 2) If so, does anyone have any documentation in performing this task,
> or can someone point me in the right direction?
>
> I was told that 'arulesSequences' is an example of a CRAN package
> while compiles executables. Was this package accepted because it
> worked under both architectures? or are there other reasons.
>
> thanks
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



[Rd] executable files R package
Duncan Murdoch