[R-SIG-Mac] how to compile R for use with binary CRAN packages

Prof Brian Ripley ripley at stats.ox.ac.uk
Mon Apr 29 11:04:27 CEST 2013


On 28/04/2013 18:43, Tobias Verbeke wrote:
> Dear list,
>
> The build page at
>
> http://r.research.att.com/building.html
>
> explicitly mentions
>
> <quote>
> Note that your binary will require you to install all packages from sources.
> </quote>
>
> Is there any documentation on how to compile R from source
> in such a way that one can install binary packages from CRAN?
>
> I have read
>
> http://cran.r-project.org/doc/manuals/R-admin.html#OS-X
>
> but may have overlooked any specific pointers.
>
> Many thanks in advance for your help.
>
> Best,
> Tobias
>
> P.S. target R version currently is R 2.15.3 but if R 3.0.0
> would make this easier, then that is a sufficient reason to
> move to R 3.0.0.
>

Why do you want to do that?  If you modify the sources binary packages 
may not longer work ....

No guarantees, but

- do this for the version of R you currently have installed.

- configure R with --with-aqua, --enable-R-framework (which are the 
default, AFAIR).

- install it to the framework.

Then the version you built should be the one used by 'R' and 'R.app': 
try it at the command-line.

The default option("pkgType") will be "source", but you will be able to 
use options(pkgType="mac.binary") (3.0.0) or "mac.binary.leopard" 
(2.15.3).  To set the default during compilation, define 
PLATFORM_PKGTYPE when building src/main/platform.c


-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-SIG-Mac mailing list