B Installing R on your computer

B.1 Why should I install R on my computer?

The R Server is cuts down on a lot of installation problems and it means that you have all the packages and functions you need already installed. However, it requires an internet connection to use and additional when it comes time to submit your R assessments, if you don’t have R on your computer it means that you won’t be able to open the files you download from the server to check they’re ok before you submit them.

It is not necessary to install R on your computer, however, now that we’re over the initial anxiety spike of using R for the first time, you may find it helpful.

B.2 Windows

If you are using Windows, you should download and install the following: * R * R Studio * RTools

Once you’ve installed all three programs, restart your computer. Then, open RStudio (not R) and run the below code:

install.packages("tidyverse")

This will install the tidyverse package on your computer. You can still use the server to do all your work, but having R on your computer will make it easier to view the files.

If you have any problems installing R, please book into a GTA session as they should be able to help you with any installation problems.

B.3 Mac

If you are using a Mac, you should download and install the following: * R * R Studio * XQuartz

There have been a number of issues installing R on Macs. We recommend you watch this walkthrough video.

If you are using a Mac with the Catalina OS, we also recommend you read this troubleshooting guide

Once you’ve installed all three programs, restart your computer. Then, open RStudio (not R) and run the below code:

install.packages("tidyverse")

This will install the tidyverse package on your computer. You can still use the server to do all your work, but having R on your computer will make it easier to view the files.

If you have any problems installing R, please book into a GTA session as they should be able to help you with any installation problems.

B.4 Chromebooks

Please note that you cannot currently install R on a Chromebook, please continue to use the R Server.