Installing R and RStudio

To work with R and RStudio, you must first install R. R Studio is the integrated development environment (IDE) and runs R. You can use R without RStudio, but you can’t use RStudio without R.

Installing R

Download the latest version of R (R-X.Y.Z-win.exe) on CRAN.

Run the R-X.Y.Z-win.exe file and follow the installation instructions (defaults are fine)

Download the latest version of RStudio select the .exe file associated with OS Windows 10/11

Download the latest version of R (R-X.Y.Z-win.exe) on CRAN.

Important

If your Mac is running an M1/M2 chip, then you need the arm architecture (R-X.Y.Z-arm64.pkg).

If your Mac is running an Intel chip, then you need the x86 architecture (R-X.Y.Z-x86_64.pkg).

Find out which one using this How-To Geek post.

Select the .pkg file appropriate for you Mac chip and macOS version.

Download the latest version of RStudio select the .dmg file associated with OS macOS 11+.

Download the latest version of R on CRAN.

Select your distro and follow the instructions.

Download the latest version of RStudio for your distro (e.g. .deb for Ubuntu/Debian).

After installing R and RStudio, you will only ever need to open RStudio, as it will run R for you.

Updating R and RStudio

You can check for updates in RStudio by going to Help > Check for updates.

To update R, you will have to go to CRAN and repeat the steps from above. To check which R version you have, type version$version.string in the console.