Installing R
Installing R
Windows and macOS using the installer
- Visit the official R website: https://cran.r-project.org/
- Select your operating system (Windows or macOS).
- Download the latest version of R.
- 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