From renaud at mancala.cbio.uct.ac.za  Thu Jun 19 09:16:43 2014
From: renaud at mancala.cbio.uct.ac.za (Renaud Gaujoux)
Date: Thu, 19 Jun 2014 09:16:43 +0200
Subject: [Rd] Is it possible to make install.packages compile source
 code on Unix but use shipped binary on Windows?
In-Reply-To: <1403102090.17749.135.camel@braque.iarc.fr>
References: <CAHavPHE1WW4JV735EQsGMdv_-wLY8_AnfAGqzCq=k96_D-wgYw@mail.gmail.com>
	<539B21CD.6090704@stats.ox.ac.uk>
	<CAHavPHHH8TjtpVbbrGBc+ZtTHo4HoXsUswrRcb=9bJv76w2GYQ@mail.gmail.com>
	<53A1761B.1080504@stats.ox.ac.uk>
	<CAHavPHEZuFnGHMEK3+vCJiR5VcC1y6-HUjHT5N1dGKbLes9L1w@mail.gmail.com>
	<1403102090.17749.135.camel@braque.iarc.fr>
Message-ID: <CAHavPHGpc-_12U6_W4S+ZUrNebOmRrsu=2od3ObTZfx2DX9O=g@mail.gmail.com>

Hi Martyn,

> It isn't hard to set up Rtools on Windows and you only need to do it
> once. Then you build a binary package on your development system to
> distribute to your users.

Yes, but since I am working on Linux, it is slightly more steps
involved in order to generate a windows binary (even using a virtual
machine), compared to build and push source packages to my repository,
for which I have shell scripts and make files that do that in seconds
and in batch mode. When working in a fast bug fix-test cycle with
windows users testing things out often times a day, these extra steps
take much time overall.

> Without even considering any technical details there is a purely
> strategic issue here. If a system has been set up that is robust and
> widely tested, like the R packaging system, you are much better off
> working with it than trying to subvert it.

Agreed completely. I really like R cross-platform packaging and
checking system, and was just wondering if this conditional
compilation option was possible using the flexibility of this very
system.

Renaud



[Rd] Is it possible to make install.packages compile source code on Unix but use shipped binary on Windows?
Renaud Gaujoux