This repository is for the course "R Programming for SAS Programmers" by Anova Groups.
- Create a GitHub Account
- Sign up for an account at github.com.
- Vikas will add you as a contributor to the repository.
- Set Up Posit Cloud (formerly RStudio Cloud)
- Create an account on posit.cloud.
- Create a new project using the Git repository URL:
https://github.com/vikasgaddu1/R_Training.git. - Navigate to
Tools>Version Control>Project Setup, selectGit, and restart RStudio.
- Configure Git Global Options
-
Open the terminal and set your global Git configuration:
git config --global user.email "you@example.com" git config --global user.name "Your Name"
-
- Create an SSH Key in RStudio
-
Go to
Tools>Global Options->Git/SVN-> and create an SSH key using the createSSH keybutton under SSH window in R studio. -
In the terminal, display your SSH public key:
cat ~/.ssh/id_ed25519.pub -
Copy the SSH public key.
-
- Add SSH Key to GitHub
- Go to GitHub settings.
- Click on
SSH and GPG keys, thenNew SSH key. - Add a description like
rstudio_cloudand paste the SSH key you copied earlier.
- Set Up Git Remote in RStudio
-
In the terminal, remove the existing remote and add the correct one:
git remote remove origin git remote add origin git@github.com:vikasgaddu1/R_Training.git git remote -v
-
- Confirm SSH Connection
-
Verify the SSH connection to GitHub: and if prompted say 'yes`
ssh -T git@github.com
-
- Create test file
-
create the test file in the folder under Code_data_2024_03_27/GH_testfolder/Name_testfile.r
-
go to upper right corner Git tab in Rstudio, stage the file by clicking the check box and press the
commiticon, put initial commit as comment and press ok. -
go to terminal and type
git push origin main
-
go to github.com and navigate to r training repository and verify if you can see your file.
-
By following these steps, you will have your development environment set up for the course "R Programming for SAS Programmers."
This work is licensed under CC BY-NC 4.0