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

Martyn Plummer plummerm at iarc.fr
Wed Jun 18 16:34:50 CEST 2014


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}}



More information about the R-devel mailing list