5 R
To run R, we need to install R (the programming language). We also install RStudio, which acts as a graphical interface for R.
You can install R and RStudio using winget
. Click the Windows key and search for Windows PowerShell, right-click on the app and choose Run as administrator. Then run the following commands:
--id=RProject.R -e
winget install --id=RProject.Rtools -e
winget install --id=Posit.RStudio -e winget install
Alternatively, you can manually download and install these programs using default options:
If you followed our macOS system setup instructions, you can install R and RStudio using brew
. Open a terminal and run:
brew install --cask r
brew install --cask rstudio
Alternatively, you can manually download and install these programs using default options:
- Go to the R installation folder and look at the instructions for your distribution.
- Download the RStudio installer for your distribution and install it using your package manager.