In short, you need at the very least Xcode and a Fortran compiler. R 4.3.0 and higher use universal GNU Fortran 12.2 compiler. You can download an installer packagegfortran-12.2-universal.pkg (242MB) - for more details and other download options seeR-macos GNU Fortran releases on GitHub.
R 3.5.0-3.6.3 El Capitan binaries and higer were using more recent Clang compiler and GNU Fortran 6.1 to provide OpenMP parallelization support and C++17 standard features. If you want to compile R packages from sources, please download GNU Fortran binary from the officialGNU Fortran Binaries page - in particular OS X 10.11 gfortran 6.1. Alternatively, we are providing a copy here as well as Clang binaries for OS X 10.11 and higher - see below for the download links.
| clang-8.0.0.pkg (OS X 10.11+, signed, 64-bit) | Clang 8.0.0 for OS X 10.11 and higher, release build for x86_64, signed package, installs into/usr/local/clang8. To be used with El Capitan builds of R 3.7.0 and higher. It is an installer version of the official LLVM released binaries only modified to use the path above. |
| clang-7.0.0.pkg (OS X 10.11+, signed, 64-bit) | Clang 7.0.0 for OS X 10.11 and higher, release build for x86_64, signed package, installs into/usr/local/clang7. To be used with El Capitan builds of R 3.6.x. It is an installer version of the official LLVM released binaries only modified to use the path above. |
| clang-6.0.0.pkg (OS X 10.11+, signed, 64-bit) | Clang 6.0.0 for OS X 10.11 and higher, static build for x86_64, signed package, installs into/usr/local/clang6. To be used with El Capitan builds of R 3.5.x. |
| gfortran-6.1.pkg (OS X 10.11+, signed, 64-bit) | GNU Fortran 6.1 for OS X 10.11 and higher - a copy fromGFortranBinaries pages for x86_64, signed package, installs into/usr/local/gfortran (identical content, re-packaged to a flat Installer package and signed). To be used with El Capitan builds of R. |
| The following binaries are obsolete and only provided for historical reasons | |
| gfortran-4.2.3.pkg (OS X 10.5+, signed, 64-bit driver) gfortran-4.2.3.dmg (OS X 10.4, 32-bit driver) | Universal GNU Fortran 4.2.3 for Mac OS X 10.4 and higher. It is necessary in order to build R packages from sources that contain Fortran code. Unlike many other builds, this is a fully universal build of GNU Fortran that uses Apple's driver and supports all target architectures (i386, ppc, x86_64 and ppc64). As such it fully supports compilation into fat files likegfortran -arch i386 -arch ppc -arch x86_64 -arch ppc64 t.f -o ton both Intel Macs and PowerPC Macs (32- and 64-bit). Dependent libraries are fat as well, avoiding problems known from other Fortran builds (such as those from HPC). It installs in/usr/local and comes with an uninstall-script. |
| tcltk-8.5.5-x11.pkg (OS X 10.5+, signed) tcltk-8.5.5-x11.dmg (OS X 10.4) | Universal build of Tcl/Tk 8.5.5 for X11 (32-bit and 64-bit). This library is necessary in order to use thetcltk R package (for R 2.8.0 - 2.15.3 only!). It installs in/usr/local. Requires Mac OS X 10.4 (Tiger) or higher for 32-bit R and Mac OS X 10.5 (Leopard) or higher for 64-bit R. NOTE: R 3.0.0 and higher comes bundled with Tck/Tk 8.6.0 so you do not need this package |
For other (optional) 3rd party libraries for development seehttp://mac.R-project.org/libs/. Thedevpack has been superseded by those libraries. For R you may want to download and installlibpng, libjpeg, readline, freetype, fontconfig, pixman andcairo.
Source code for all 3rd party libraries can be found athttp://mac.R-project.org/src/
The dependency libraries used by the CRAN macOS build system are now managed by buildrecipes. Package authors wishing to add static dependendies can create a pull request to add a dependency.
| old | Previous versions of tools as supplied with legacy R versions. |
You may also want to read theR FAQ andR for Mac OS X FAQ. For discussion of Mac-related topics and reporting Mac-specific bugs, please use theR-SIG-Mac mailing list.
Information, tools and most recent daily builds of the R GUI, R-patched and R-devel can be found athttp://mac.R-project.org/. Please visit that page especially during beta stages to help us test the Mac OS X binaries before final release! The page also contains links to experimental builds as such 64-bit R for OS X.
Link to corresponding sources:http://mac.R-project.org/src/
Last modified: 2022/04/22, by Simon Urbanek