<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Dirk,<div class=""><br class=""></div><div class="">I agree, very small world :).</div><div class=""><br class=""></div><div class="">For example, I have installed my package on Mac using  <b class="">R CMD install 'package'</b>, so I had already C/C++ compiler, it works well. Then I generate the <b class="">tar.gz </b>package<b class=""> </b>using<b class="">  </b><b class="">R CMD build ‘package'.</b></div><div class=""><br class=""></div><div class="">But, when I try to install the <b class="">tar.gz </b>package on other machines (Mac Or Windows in my case), I must have a C/C++ compiler..</div><div class=""><br class=""></div><div class="">The point is that i like to install it without C/C++ compiler on the other machines.</div><div class=""><br class=""></div><div class=""><span class="hps">Following the</span> <span class="hps">ancient</span> <span class="hps">discussions of this</span> <span class="hps">email,</span>  I have to generate the binary package using:     <b class=""><font face="Menlo" class=""><span style="font-size: 11px;" class="">R CMD INSTALL --build ‘package'</span></font></b><font face="Menlo" class=""><span style="font-size: 11px;" class="">, rather than</span></font><b class=""><font face="Menlo" class=""><span style="font-size: 11px;" class=""> R CMD build ‘package</span></font></b><font face="Menlo" class=""><span style="font-size: 11px;" class=""><b class="">’</b>.</span></font></div><div class=""><font face="Menlo" class=""><span style="font-size: 11px;" class=""><br class=""></span></font></div><div class=""><span style="font-family: Menlo; font-size: 11px;" class="">So in my case, there is a difference between </span><font face="Menlo" class=""><span style="font-size: 11px;" class=""><b class="">R CMD INSTALL —build</b> and </span></font><font face="Menlo" class=""><span style="font-size: 11px;" class=""><b class="">R CMD build </b>when generating a binary package.</span></font></div><div class=""><font face="Menlo" class=""><span style="font-size: 11px;" class=""><br class=""></span></font></div><div class=""><font face="Menlo" class=""><span style="font-size: 11px;" class=""><br class=""></span></font></div><div class=""><span style="font-family: Menlo; font-size: 11px;" class="">Thanks Dirk,</span></div><div class=""><span style="font-family: Menlo; font-size: 11px;" class=""><br class=""></span></div><div class=""><span style="font-family: Menlo; font-size: 11px;" class="">Youssef</span></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">Le 19 nov. 2015 à 16:26, Dirk Eddelbuettel <<a href="mailto:edd@debian.org" class="">edd@debian.org</a>> a écrit :</div><br class="Apple-interchange-newline"><div class=""><br class="">On 19 November 2015 at 14:31, Hmamouche Youssef wrote:<br class="">| I have builded a package on my machine, and when i like to install it on other machines, i have to install all the require tools (C++ compiler, …), which means that i have to compile it each time.<br class=""><br class="">Yes.<br class=""><br class="">Open Source works from source. This is pretty common.  CRAN is comprised of<br class="">_source_ packages.  But also binary packages so: What OS? On<br class=""><br class="">  -- Windows you have win-builder at <a href="http://win-builder.r-project.org" class="">http://win-builder.r-project.org</a><br class="">     to have a binary built for you, see its documentation<br class=""><br class="">  -- OS X you may be able to do it too<br class=""><br class="">  -- Linux it depends on distribution but<br class=""><br class="">     -- for Debian / Ubuntu we have<br class=""><br class="">        -- several hundred packages in the distro<br class="">        -- several dozen at eg the CRAN Ubuntu directories<br class="">        -- thousand plus at Michael's PPAs<br class="">        -- the possibility to build your own (which I just did last eve<br class="">           as I wanted a new prebuilt r-cran-* for Travis)<br class=""><br class="">     -- other distros see their volunteers <br class=""><br class="">| Can’I do It a single time ? and built it in such a way that can be used without compilation, just like we do for CRAN packages.<br class=""><br class="">Please explain that statement.  When I install Rcpp from CRAN on my computers<br class="">it is essentially always from source, and yes, my computers have compilers.<br class=""><br class="">| Thanks in advance,<br class="">| <br class="">| Youssef<br class="">| <br class="">| Phd Student at Aix-Marseille University, France<br class=""><br class="">Small world. I once went to what was then called Aix-Marseille II (and then<br class="">went to GREQAM/EHESS at the Veille Charite).<br class=""><br class="">Dirk<br class=""><br class="">-- <br class=""><a href="http://dirk.eddelbuettel.com" class="">http://dirk.eddelbuettel.com</a> | @eddelbuettel | <a href="mailto:edd@debian.org" class="">edd@debian.org</a><br class=""></div></blockquote></div><br class=""></div></body></html>