A short description of the post.
There are several reasons why, as someone that contributes packages to R, that you should consider using r-devel instead of the latest release. Primary among these reasons are the fact that there may be changes in r-devel that are not in the latest release version and the maintainers will ding you for not using the correct version. For whatever reason, it is a good idea and here are the notes I’ve put together to compile it on OSX (at the time this was written I was using 10.8.3).
First among the requirements is the OS X development environment. This includes all the compilers and associated tools you’ll need. You can get these directly from Apple through the App Store.
You will also need:
Here is the general approach I used, that seemed to work.
svn checkout https://svn.r-project.org/R/trunk/ r-devel
./tools/rsync-recommended
xcode-select --install
./configure 'CFLAGS=-mtune=core2 -g -O2' 'CXXFLAGS=-mtune=core2 -g -O2' 'OBJCFLAGS=-mtune=core2 -g -O2' 'FCFLAGS=-g -O2' 'F77FLAGS=-g -O2' '--with-system-zlib' '--enable-memory-profiling' '--disable-openmp' '--with-tcltk=/usr/local/lib' --with-x=no
make
make check
make vignettes
make pdf
$ sudo make install
One of the benefits of having a svn repository locally is that you can just update it the next time that you need it and rebuild the components that have changed. To update the repository simply issue the following command in the directory with the r-devel folder.
svn up
Then you can rebuild as outlined above.
For attribution, please cite this work as
Dyer (2013, June 3). The Dyer Laboratory: Compiling r-devel. Retrieved from https://dyerlab.github.io/DLabWebsite/posts/2013-06-03-compiling-r-devel/
BibTeX citation
@misc{dyer2013compiling, author = {Dyer, Rodney}, title = {The Dyer Laboratory: Compiling r-devel}, url = {https://dyerlab.github.io/DLabWebsite/posts/2013-06-03-compiling-r-devel/}, year = {2013} }