Body
Regardless of your operating system, you should install R before installing RStudio. Please read and follow these instructions carefully.
- Navigate to https://cran.r-project.org/ and select “Download R for Windows” or “Download R for Mac”
- On the next page, follow these instructions depending on which operating system you are using:
- For Windows: Click the link that says “base” to begin the download
- For older Intel-based Macs: Click the link for R-4.X.X.pkg to begin the download
- For newer Arm-based Apple Silicon Macs (M1, etc.): Click R-4.X.X-arm64.pkg to begin the download
- After the program has been downloaded, double-click the downloaded software media to begin the base R installation. Accept all default options.
- After R is installed, navigate to https://www.rstudio.com/products/rstudio/download/#download and choose “Download RStudio for Windows” or “Download RStudio for Mac”.
- Double-click the downloaded RStudio media to begin the installation. Accept all default options.
- Next, you may open RStudio and install any packages you may need. For example, you can install the tidyverse package with the following syntax: install.packages("tidyverse", dependencies=TRUE)