Installing R

Windows and macOS using the installer

  1. Visit the official R website: https://cran.r-project.org/
  2. Select your operating system (Windows or macOS).
  3. Download the latest version of R.
  4. Run the installer and follow the on-screen instructions.

macOS using Homebrew

If you use Homebrew, you can install R with:

brew install r

Linux

Install R using your package manager.

For Debian/Ubuntu:

sudo apt update
sudo apt install r-base

Verify Installation

Open a terminal (or Command Prompt on Windows) and run:

R --version

You can also start the R console by typing:

R