This series
Installing R
Windows
- Go to the CRAN website.
- Click Download R for Windows → base → install R for the first time.
- Run the installer and follow the setup wizard:
- Choose installation directory (default is fine).
- Select components (default is fine).
- Pick language and shortcuts.
- Once installed, open R from the Start Menu or search for “R”.
macOS
- Go to the CRAN website.
- Click Download R for macOS.
- Download the
.pkg
file for the latest release. - Double-click the
.pkg
file and follow the installer instructions. - After installation, open R from Launchpad or Finder → Applications.
Linux - Ubuntu / Debian
sudo apt update
sudo apt install r-base
Verify Installation
To check that R is installed correctly, open a R console and run:
version