This file contains instructions for how to install R, RStudio, and git on your personal computer. The instructions below should work for most recent versions of MacOS, Windows, and Ubuntu. If you do not have a computer with one of those operating systems, or if you have any problems, please contact the course instructurs via the course Slack channel.
- Follow installation links and instructions at https://cran.rstudio.com/. The current version is R-4.2.1.
- In general, select the installation defaults
- Windows
- Select the option for "Install R for the first time"
- If given the option, install RTools4.2. If you forget or do not see the option, install it from here (select the "Rtools42 installer").
- MacOS
- Download the file
R-4.2.1.pkg
, then double-click that file.
- Download the file
- Download the installer for your OS at https://www.rstudio.com/products/rstudio/download/#download
- Start RStudio
- Type
plot(1:10)
at the prompt in the "Console" window - Confirm you see the simple scatter plot in the lower right panel, as shown in the screenshot below
- Follow instructions in https://docs.microsoft.com/en-us/windows/wsl/install