[R] Difference between "R CMD build --binary" and "R CMD INSTALL --build"

Duncan Murdoch murdoch at stats.uwo.ca
Tue Jan 4 12:53:32 CET 2005


On Tue, 4 Jan 2005 11:31:27 -0000, "michael watson \(IAH-C\)"
<michael.watson at bbsrc.ac.uk> wrote:

>As the title suggests, when building R packages on Windows, what is the
>difference between:
>
>R CMD build --binary mypack
>
>And 
>
>R CMD INSTALL --build mypack
>
>??  The former is suggested by my previous notes and seems to work, and
>the latter is suggested by
>http://www.biostat.jhsph.edu/~kbroman/Rintro/Rwinpack.html, and also
>seems to work.

The former builds the package in a temporary directory.

The latter installs the package in the standard library location, then
builds from the installed copy.  This does a better job because it
allows help links to other packages.  

Duncan




More information about the R-help mailing list