Installing R
R is free and available for Windows, Mac, and Linux. This textbook requires R version 4.1 or later (for the native pipe operator |>).
Windows:
- Go to https://cran.r-project.org/bin/windows/base/
- Click “Download R for Windows”
- Open the downloaded file and follow the installer prompts
- Accept all default settings
Mac:
- Go to https://cran.r-project.org/bin/macosx/
- Click the
.pkgfile that matches your Mac (Apple Silicon or Intel) - Open the downloaded file and follow the installer prompts
- Accept all default settings
To verify the installation, open a terminal (Mac) or command prompt (Windows) and type R --version. You should see the version number displayed.