class: center, middle, inverse, title-slide # Lab 02 ## Statistical Computing & Programming ### --- ## Announcements - Homework 1 due **Wednesday, February 3 at 11:59pm ET** - Join the GitHub organization - Last chance to complete the Introductory Survey (see first post in `#general` of Slack) - A repo of all the exercises is available at [sta323-523-sp21/exercises](https://github.com/sta323-523-sp21/exercises) --- ## Getting started - Fork the repository to create a copy in your own GitHub account. The repo is too big for GitHub Classroom to handle. Once forked, the steps are identical to before with regards to cloning the repo. - Open an RStudio session (Rook or Knight or locally). If your NetID begins with A - J, use Rook, everyone else use Knight. - In RStudio go to - `File` > `New Project`, - select `Version Control`, - select `Git`, - navigate to your repo on GitHub: `sta323-523-sp21/lab_02-[github_username]`, - click the green `Code` button and copy the git URL, - paste the git URL into the dialog box in RStudio, - click `Create Project`. --- ## Git commands refresher | git Command | Description | |-----------------------------:|:-----------------------------------------------------| | `git clone <repo>` | Clone repo located at `<repo>` onto local machine | | `git status` | List which files are staged, unstaged, and untracked | | `git diff` | Show unstaged changes | | `git add <directory/file>` | Stage changes of `<directory/file>` | | `git commit -m "<message>"` | Commit staged snapshot with a summary `<message>` | | `git push <remote> <branch>` | Push the `<branch>` to `<remote>` | On Unix-like systems, use `man` to get help on git commands. For example, `man git-push` will pull up the manual page for `git push`. Windows users using git bash can use `git --help` and `git push --help`, for example. --- ## Today's objectives - Complete Lab 02. - Work with those in your breakout room. - This is not graded. - Use the extra to time to work on Homework 01 and ask questions. - Ask questions about recent course material.