class: center, middle, inverse, title-slide # Data Visualization ## Accessing tasks and assignments on github ### Andrew Irwin,
a.irwin@dal.ca
### Math & Stats, Dalhousie University ### 2021-01-15 (updated: 2021-01-13) --- class: middle # Task * Task 4: * Check out the github repository for your assignment 1 --- class: middle, inverse # Steps * Go to your account on github.com and find the repository for assignment-1. (See the Task 4 instructions for more help.) * Copy the link provided by github * Create a new R project from github repo * Do the assignment * Push the changes to github --- class: middle # Click the link to access the repository on the detailed outline * I have created a copy of the task/assignment as a repository on your github account * If it is missing, make sure you have given me your github user name in Task 2. * Contact me if you can't find the repository or the link to create a new R project with it. --- class: middle # Copy the link provided by github <img src="../static/git-demo/step-2a-get-repo-url.png" width="3965" /> --- class: middle # Create a new project from github: Windows & Mac * Check if git is installed * Create new project * Authenticate * Tell git your name (once only) * git config --global user.email "you@example.com" * git config --global user.name "Your Name" --- class: middle ## Check git is installed <img src="../static/git-demo/windows-git-not-installed.png" width="1299" /> Go back to Syllabus or Lesson 3: Version Control for instructions. --- class: middle ## Check git is installed <img src="../static/git-demo/windows-git-success.png" width="1609" /> --- class: middle <img src="../static/git-demo/windows-clone-repo-github.png" width="1536" /> --- class: middle <img src="../static/git-demo/windows-ready-to-go.png" width="3183" /> --- class: middle # rstudio.cloud * Create new project (not from github) * git clone <paste link from github> * Tell git your name (once only) * git config --global user.email "you@example.com" * git config --global user.name "Your Name" * Open new project --- class: middle <img src="../static/git-demo/cloud-0-create-project.png" width="3016" /> --- class: middle <img src="../static/git-demo/cloud-1-clone.png" width="2948" /> --- class: middle <img src="../static/git-demo/cloud-2-finished.png" width="2935" /> --- class: middle # Do the assignment * Stage and commit your changes to your local repository --- class: middle # Push the changes to github * You may get a warning email about password authentication being discontinued later this year * You can switch to an alternative authentication method, but there is no hurry --- class: middle # Pull my changes to get your assessment * Wait a few days! (I will send a notification email.) * Grades will also appear on Brightspace Prompt to "sign in with your browser" (authorize credential manager from browser) Use PAT (personal access token) system. https://github.com/settings/tokens/new Later --- class: middle, inverse, center # All done! # Congratulations