
R can be compiled without them, but they provide additional capabilities to R.

The following tools and libraries are optional. For more details, please see the documentation of the recipes build system. It may be convenient to setup the target to be managed by the current user, e.g.:Īfter which sudo is no longer required. On Intel Macs the default prefix is /usr/local (another recommended alternative is /opt/R/x86_64) and on arm64 Macs it is /opt/R/arm64. This will build and install all dependencies necessary to compile R including optional capabilities such as cairo, tiff, jpeg, png and texinfo. If you wish to compile all dependencies yourself use the following commands: Those are binaries used by CRAN and are built using the recipes system, thus can be transparently re-built accordingly.


R and some contributed package require a FORTRAN compiler. Which installs Xcode command line tools which are sufficient to build R (however, if you want to also build the R.app GUI you do need the full Xcode installation). On modern macOS versions you can simply use Older versions are available in the "more" section of the Developer pages (Apple developer account necessary). Xcode can be obtained from Apple AppStore and the Xcode developer page. In order to compile R for macOS, you will need the following tools:
