Mandatory tools In order to compile R for macOS, you will need the following tools: Xcode developer tools from Apple Xcode can be obtained from Apple AppStore and the Xcode developer page. Older versions are available in the "more" section of the Developer pages (Apple developer account necessary). On modern macOS versions you can simply use sudo xcode-select --install which installs Xcode command