Rev 6452 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
INSTALLconfigure, build and install R with./configure --with-aqua --enable-R-frameworkmakesudo make installOnce you have the R.framework installed in /Library/Frameworks, youcan build R.app.Note that for universal GUI you will have to set r_arch in configureabove to one of the supported architectures, currently i386 or x86_64.Building R.app================Only Mac OS X 10.5 and higher are supported. The project is called"R.xcodeproj" and requires Xcode 3.0 or higher. (If you need supportfor older Mac OS X version, you can use a GUI version before 1.40.)The project can be built by selecting "R" target and "Build" insidethe XCode GUI.To build the project from the command line in Mac-GUI directory usesomething like:xcodebuild -target R -configuration SnowLeopard64Supported configurations are:Leopard (32-bit Intel, release, OS X 10.5+, Xcode 3.0+)Leopard64 (64-bit Intel, release, OS X 10.5+, Xcode 3.0+)SnowLeopard (32 and 64-bit Intel, release, current OS X)SnowLeopard64 (64-bit Intel, release, current OS X)Debug (native arch, with debugging output, current OS X)Lion (32-bit Intel, release, OS X 10.7+, Xcode 4.5+)Lion64 (64-bit Intel, release, OS X 10.7+, Xcode 4.5+)MLion64 (64-bit Intel, release, OS X 10.8+, Xcode 4.5+)The configurations differ mainly in the SDK selected (current versionsof Xcode only support recent SDKs) and file locations (recent versionsof Xcode have all the files in the Xcode.app directory rather thansome in /Developer). The 'native arch' will be 64-bit Intel on recentversions of OS X.To build the R for Mac OS X FAQ use eitherxcodebuild -target Docsor manually in docs foldermakeinfo -D UseExternalXrefs --html --force --no-split RMacOSX-FAQ.texiThe resulting html FAQ file will be found in Mac-GUI/docs directory.Note about binary compatibility:The general rules for R apply, that is binary compatibility is givenonly if the major and minor version numbers match - only the patchlevel may differ. When using the X.Y.Z version form it means that X.Ymust match. For example R-GUIs linked to 2.0.x and 2.1.x are NOTbinary compatible (and there is some conditional code in the GUI sources).The compiled R.app is usually bound to a specific version, such as2.0.1. If you upgrade R removing the older version, let's say usingR.app built for 2.0.0 and updating R to 2.0.1, you may need to fix theabsolute path to libR.dylib. The nightly builds use a generic path/Library/Frameworks/R.framework/Resources/lib/libR.dylib which pointsto the latest version of R, but this is done by an additional call toinstall_name_tool in the building script. Release versions of the GUIuse a fixed-version path as they come with a specific R version (in factthe default behavior doesn't depends on the GUI, but on libR.dylib -changing its own reference entry changes the way R.app is linked).--Last update: 2013-03-04