2 Installing R and RStudio

Have your computer installed with R and RStudio!

2.1 Step 1: Install R

  1. Visit R Project’s Website
  2. Download R
    • Choose your operating system:
      • Windows: Click on “Download R for Windows” → “base” → “Download R X.X.X for Windows”.
      • macOS: Click on “Download R for (Mac) OS X” → Select the appropriate package for your macOS version.
      • Linux: Follow the instructions for your specific distribution.
  3. Install R
    • Run the downloaded file and follow the on-screen instructions.
    • For most users, the default settings will work.

2.2 Step 2: Install RStudio

  1. Visit RStudio’s Website
  2. Download RStudio
    • Click “Download” under the free RStudio Desktop version.
    • Select the installer for your operating system (Windows, macOS, or Linux).
  3. Install RStudio
    • Run the downloaded file and follow the installation prompts.

2.3 Step 3: Launch RStudio

  1. Open RStudio. If you cannot find the downloaded RStudio, type RStudio in the search window in your computer.
  2. RStudio will automatically detect the installed R version.

Your R and RStudio installation is now ready for use!