Skip to content
Prev 9850 / 15075 Next

how to compile R for use with binary CRAN packages

On 28/04/2013 18:43, Tobias Verbeke wrote:
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