[prev in list] [next in list] [prev in thread] [next in thread] 

List:       r-sig-mac
Subject:    Re: [R-SIG-Mac] how to compile R for use with binary CRAN packages
From:       Simon Urbanek <simon.urbanek () r-project ! org>
Date:       2013-04-29 12:20:35
Message-ID: 8B352FEE-BDE6-459B-8128-A0E435085FB6 () r-project ! org
[Download RAW message or body]


On Apr 29, 2013, at 5:04 AM, Prof Brian Ripley wrote:

> 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). 

The actual flags used to build the current CRAN binary are in

https://svn.r-project.org/R-dev-web/trunk/QA/Simon/R-build/conf.snowleopard-x86_64

If you want to replicate the CRAN build (requires Mac OS X 10.6), you can set it up \
with:

mkdir /Builds
cd /Builds
svn co https://svn.r-project.org/R-dev-web/trunk/QA/Simon/R-build nightly
make

cd /Builds/nightly
## put your favorite R sources here - either using svn or unpacking a tar ball - \
                let's say it's R-3.0.0
./release R-3.0.0

If all went well you'll have everything built, installed, packages and tar balls in
deploy/snowleopard/R-3.0.0

In order to match the R capabilities that we supply on CRAN you'll also need quite a \
few static libraries like fontconfig, freetype, cairo etc.

Cheers,
Simon



> - 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@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
> 
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
> 
> 

_______________________________________________
R-SIG-Mac mailing list
R-SIG-Mac@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-mac


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic