


When it comes to choosing a username we suggest you give this some thought. We suggest that you use your University email address (if you have one) as this will also allow you to apply for a free educator or researcher account later on which gives you some useful benefits (don’t worry about this now though). You will need to specify a username, an email address and a strong password. You can sign up for a free account on GitHub here. This is where GitHub comes into play (there are also other services like GitLab, Bitbucket and Savannah). If however, you would like to make an off-site copy of your project or make it available to your collaborators then you will need a web-based hosting service for your Git repositories. If all you want to do is to keep track of files and file versions on your local computer then Git is sufficient. On some installations of Git (yes we’re looking at you MS Windows) this may still produce an error as you will also need to setup RStudio so it can find the Git executable (described below). Whatever version of Git you’re installing, once the installation has finished verify that the installation process has been successful by running the command git -version in the Terminal tab in RStudio (as described above). For other versions of Linux see here for further installation instructions. You will need administrative privileges to do this.
R STUDIO COMMANDS UPDATE
For Ubuntu Linux (or variants of) open your Terminal and type sudo apt update
R STUDIO COMMANDS INSTALL
If you’ve never heard of Xcode then don’t worry about it!įor those of you lucky enough to be working on a Linux machine you can simply use your OS package manager to install Git from the official repository. If you’ve previously installed Xcode on your Mac and want to use a more up to date version of Git then you will need to follow a few more steps documented here.
R STUDIO COMMANDS DOWNLOAD
You can find the download file and installation instructions here.įor those of you using a Mac computer we recommend you download Git from here and install in the usual way (double click on the installer package once downloaded). To install Git on a Windows computer we recommend you download and install Git for Windows (also known as ‘Git Bash’). On a Linux machine simply open the Terminal (Ctrl+Alt+T often does it). On a Mac go to ‘Applications’ in Finder, click on the ‘Utilities’ folder and then on the ‘Terminal’ program. On Windows go to the ‘Start menu’ and in the search bar (or run box) type cmd and press enter. You can also do this check outside RStudio by opening up a separate Terminal if you want. If you get an error (something like git: command not found) this means you don’t have Git installed (yet!). If you see something that looks like git version 2.25.0 (the version number may be different on your computer) then you already have Git installed (happy days). You can check if you already have Git installed by clicking on the Terminal tab in the Console window in RStudio and typing git -version (the space after the git command is important). If you’re lucky you may already have Git installed (especially if you have a Mac or Linux computer). To get started, you first need to install Git.
