The below information illustrates the process for the server site package repository only. Follow the same route to clone the client site package repository.

This tutorial focuses on writing packages from scratch. However, to amend a function from a package already written the developer can follow the same route to clone the repository which holds the function and amend the code from his branch.

Clone the server site package repository

This is equivalent to copying over the repository/package, in GitHub, into your local computer where most of your development is going to take place. The version you will have on your computer will be linked to the one on GitHub. Go to the GitHub page of the package and copy the URL on the bottom left corner of the page, under HTTPS clone URL.

Once you have copied the URL go back to your local computer and start your Rstudio. In your Rstudio go to File and under that tab select New Project. A window with the title New Project will then pop up; in that small window click on Version Control and then on Git. Fill in the details required as shown in the below image:

If you are developing from a Windows environment you might experience the error shown on the below image. When you click on Git in the window New Project the process stops and the message below is displayed. Follow the instructions in the last section on this page to hopefully solve the problem. This worked on the computer with a Windows 7 operating system I tried it out. There is no guarantee that it will work on other Windows version or even on other Windows 7 machine since the file architecture might be different.

Possible solution for the issue of Git and Rstudio not linking up in Windows