R studio linked with Github

A repository that will be linked with RStudio After installing RStudio and Gib set on your computer in a GitHub account, It's time to link them together to maximize the benifts of using RStudio in your version control piopelines. ** To link RStudio in Git ** If you want RStudio to help with your Git and GitHub work, it must be able to find the Git executable ("git.exe"). RStudio can only act as a GUI front-end for Git if Git has been successfully installed AND RStudio can find it.

In RStudio, go to "Toosl" tab, the go to "Global Options", then click on Git/SVN.

image

Sometimes the default path to the Git executable is not correct. Make sure file "git.exe" (git executable file). resides in the directory that RStudio has specified. Check it by going to drive C and find Git executable file. Next go to RStudio, click on "Tools" tab, and go to "Global options", click on Git/SVN and check Git executable file directory. Make sure, it's correct.

image

Subversion (SVN) directory SVN has the home directory listed when you are going to connect two softwares for the first time through Git.

##Linking RStudio and GitHub In that same RStudio option window, click “Create RSA Key” and when this completes, click “Close.”

Following this, in that same window again, click “View public key” and copy the string of numbers and letters. Close this window.

image

Generate an RSA key and copy the public key to your clipboard

You have now created a key that is specific to you which we will provide to GitHub, so that it knows who you are when you commit a change from within RStudio.

To do so, go to github.com/, log-in if you are not already, and go to your account settings. There, go to “SSH and GPG keys” and click “New SSH key”. Paste in the public key you have copied from RStudio into the Key box and give it a Title related to RStudio. Confirm the addition of the key with your GitHub password.

image

Location of “SSH and GPG keys” on your profile settings

image

Telling GitHub the public SSH key generated in RStudio

GitHub and RStudio are now linked. From here, we can create a repository on GitHub and link to RStudio.