From plummerm at iarc.fr  Wed Jun 18 16:34:50 2014
From: plummerm at iarc.fr (Martyn Plummer)
Date: Wed, 18 Jun 2014 14:34:50 +0000
Subject: [Rd] Is it possible to make install.packages compile source
 code on Unix but use shipped binary on Windows?
In-Reply-To: <CAHavPHEZuFnGHMEK3+vCJiR5VcC1y6-HUjHT5N1dGKbLes9L1w@mail.gmail.com>
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>
Message-ID: <1403102090.17749.135.camel@braque.iarc.fr>

On Wed, 2014-06-18 at 16:10 +0200, Renaud Gaujoux wrote:
> > Maybe.  Read the documentation and sources for yourself (see below).
> 
> Not working, at least in my hands, as it requires `sh`.
> 
> > Yes, *and documented*
> 
> True. I overlooked the beginning of the NB point.
> 
> > (including that it should not be used for Windows executables).
> 
> Yes, that's why I use the suggested procedure that uses
> src/install.libs.R to copy compiled .exe files into bin<R_ARCH>/.
> 
> So, eventually, I guess the answer to the original question is: no,
> one cannot make install.packages skip compilation of a source package,
> only if on Windows, without having Rtools installed -- and in PATH.

But why would you want to? I don't understand why you are making life so
hard for yourself.

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.

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.  

Martyn


> Renaud
> 
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel

-----------------------------------------------------------------------
This message and its attachments are strictly confidenti...{{dropped:8}}



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