class: center, middle, inverse, title-slide # Lab 01 ## Hello R ### Shawn Santo ### 01-17-20 --- ## Goals - **Introduce you to R and RStudio:** + R is the name of the programming language itself + RStudio is a convenient interface - **Introduce you to Git and GitHub:** collaboration and version control system that we will be using throughout the course + Git is a version control system, like "Track Changes" features from Microsoft Word + GitHub is the home for your Git-based projects on the internet - **Take small steps:** + This a solo lab to make versioning simpler, but that doesn't mean you can't work with others. --- ## Getting started You may watch or follow along: - Navigate to https://classroom.github.com/a/tle2iwF6 and accept the assignment. - Click the link to go your private repo, lab01-[github_name]. - In your repo, click on the green **Clone or download button**, select **Use HTTPS** if it is not already selected. Click on the clipboard icon to copy the repo URL. - Go to RStudio Cloud and into the **STA 199.001 - Spring 20** course workspace. Create a **New Project from Git Repo**. You will need to click on the down arrow next to the **New Project** button to see this option. - Copy and paste the URL of your assignment repo into the pop up dialog box. - Click OK. Now it's your turn! Please raise your hand if you have any questions. --- ## Configure git Next, we need to configure git so RStudio and GitHub can communicate with each other. You may watch or follow along: Type the following lines of code in the **console** pane: ```r library(usethis) use_git_config(user.name = "your name", user.email = "your email") ``` .small-text[ Make sure you input your name and your email address associated with GitHub in the above code. ] <br/><br/> Once you have configured git, you're ready to complete the rest of lab! We will walk you through Lab 01, up to Exercise 1. --- ## Lab 01 - As you work on Lab 01 + work with individuals near you, + ask questions, + don't be afraid to experiment in R, you can't break anything. - Pay special attention to the submission procedure.