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

Renaud Gaujoux renaud at mancala.cbio.uct.ac.za
Fri Jun 13 12:10:34 CEST 2014


Hi,

is it possible to make install.packages install a source package by
compiling it on Unix, but skip compilation and use a pre-built windows
binary (shipped in exec/) if installing on Windows?

The package should be installable on Windows machines that do not have
Rtools installed. This is to make the update process easier for users,
because the C++ code does not change often, meaning that I can just
send source packages built on Linux, with a binary executable built
once in a while on win-builder.

Note that this is for a package that is not meant for CRAN, so no
policy issue here.

Thank you.

Bests,
Renaud



More information about the R-devel mailing list