How to install the programming language R, widely used across statisticians for data mining and data analysis, and the IDE RStudio on macOS with Homebrew.
How to install R
The programming language R is widely used by statisticians for data mining and data analysis. The R project provides official binaries for Homebrew that can be installed from the Terminal with the following command:
$ brew cask install r
Alternatively, the Homebrew-compiled version of R omits the GUI app and can be installed with the command:
$ brew install r
Install Rstudio
The IDE Rstudio is a wide-spread syntax-highlighting development environment for R. The editor can be installed from Homebrew with the following command:
$ brew cask install rstudio
Rstudio will be installed in the path /Applications/RStudio.app
.