- Download and install the latest version of R for Windows.
- Download and install RStudio Desktop.
- Open the RStudio application. Copy and paste the following command into the Console window (look for a blinking cursor) and press Enter:
install.packages(c("tidyverse", "lubridate", "ratdat"))
- R will attempt to install the Tidyverse, Lubridate, and Ratdat packages on your machine. When the installation process has finished, copy and paste the following command into the Console window and press Enter:
library(tidyverse)
If you do not see an error like there is no package called '...'
you are good to go!
Note for administrators of shared lab computers: If you are installing R on a shared computer, you may need to run the installer as administrator (right-click on .exe file and select "Run as administrator" instead of double-clicking) or take other actions to ensure that all users can run R. You can find more information about troubleshooting installation on shared Windows machines here: