Getting started with R and RStudio on your personal machine
2023-10-19
Please note, these instructions are for installing R/RStudio on your personal machine and do not apply to Lurie managed devices.
Security documentation
When handling R and RStudio on a Lurie managed device, please refer to the following security documentation.
-
Security Best Practices for Using R and Rstudio in the Intro to R workshop: here
-
Guidance on the Use of R and RStudio: here
Install R (first)
R and RStudio are two separate programs. You must install R first, then install RStudio desktop
-
Windows – download from: https://cran.rstudio.com/bin/windows/base/
-
Mac OS – download the latest .pkg file from: https://cran.rstudio.com/bin/macosx/ (top link)
Install RStudio (second)
- Select the RStudio desktop download file corresponding to your operating system from: https://posit.co/download/rstudio-desktop/#download
Open RStudio
Open RStudio by clicking on the RStudio icon (round blue circle with an R in the center). Do not open the regular R software. R will work in the background when you use RStudio.
R
is a language.RStudio
is an “IDE” or Integrated Development Environment that makes programming with R so much easier. You don’t have to use RStudio, but it’s recommended.