Skip to content

Commit

Permalink
ANOTHER UPDATE
Browse files Browse the repository at this point in the history
  • Loading branch information
afredston committed May 1, 2017
1 parent 45bed51 commit 04ee339
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
5 changes: 0 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,4 @@
.Rhistory
.RData

*.pdf


.pdf


6 changes: 4 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -298,17 +298,19 @@ <h2 data-config-subtitle><!-- populated from slide_config.json --></h2>

<p>The second box is for the name of the project, and the new directory you&#39;re creating on your computer. I almost always use the same name as the repository (in this case, <code>github-intro-2</code>).</p>

</article></slide><slide class=''><hgroup><h2>RStudio Practice</h2></hgroup><article id="rstudio-practice-3">

<p>Finally, tell RStudio where to put this repo. It is <strong>strongly</strong> recommended that you create a directory in your home directory called &#39;github&#39;, and put all your repositories and code there. To do this, put &#39;~/github&#39; in the third box. Finally, click &#39;create project&#39;. (If you get an error doing this, there could be many reasons, but the first thing I try is going back to the repository on GitHub, clicking &#39;use SSH&#39; or &#39;use HTTPS&#39; under the green &#39;clone&#39; button (whichever you didn&#39;t use last time), and repeating everything on this slide. You might also have to manually create a &#39;github&#39; folder in your home directory.)</p>

</article></slide><slide class=''><hgroup><h2>RStudio Practice</h2></hgroup><article id="rstudio-practice-3">
</article></slide><slide class=''><hgroup><h2>RStudio Practice</h2></hgroup><article id="rstudio-practice-4">

<p>Congratulations, you just cloned a repository from GitHub! It&#39;s now yours to edit in RStudio. Under &#39;files&#39; in the bottom right window, you&#39;ll see everything in this repository, including this presentation. Open practicescript.R, make any edit you like, and save it.</p>

<p>You&#39;ll notice the top right pane has a tab called &#39;git&#39;. Click on it, and you&#39;ll see all the files in this directory. Check the box next to practicescript.R and click &#39;commit&#39; above. Enter a message describing your changes in the box on the top right and click &#39;commit&#39;.</p>

<p>Don&#39;t forget to pull before you push! Because no one else should be editing your forked repository, there shouldn&#39;t be any changes when you pull. Finally, push your commit, and then go back to GitHub to see the changes in the repository.</p>

</article></slide><slide class=''><hgroup><h2>RStudio Practice</h2></hgroup><article id="rstudio-practice-4">
</article></slide><slide class=''><hgroup><h2>RStudio Practice</h2></hgroup><article id="rstudio-practice-5">

<p>If you wanted to create a new repository, you would go to the GitHub home page, click &#39;new repository&#39; and follow the prompts, and then use the same process we just covered to clone it and start editing code in RStudio. You can drag and drop files from other locations into the repo directory on your local machine and then push them to GitHub, if they aren&#39;t too big.</p>

Expand Down
Binary file modified index.pdf
Binary file not shown.
2 changes: 2 additions & 0 deletions index.rmd
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,8 @@ Open RStudio and go to file -> new project. Then click version control, then git

The second box is for the name of the project, and the new directory you're creating on your computer. I almost always use the same name as the repository (in this case, `github-intro-2`).

## RStudio Practice

Finally, tell RStudio where to put this repo. It is **strongly** recommended that you create a directory in your home directory called 'github', and put all your repositories and code there. To do this, put '~/github' in the third box. Finally, click 'create project'. (If you get an error doing this, there could be many reasons, but the first thing I try is going back to the repository on GitHub, clicking 'use SSH' or 'use HTTPS' under the green 'clone' button (whichever you didn't use last time), and repeating everything on this slide. You might also have to manually create a 'github' folder in your home directory.)

## RStudio Practice
Expand Down

0 comments on commit 04ee339

Please sign in to comment.