Materials for UW Psych Department Demo on March 5 2020
For those of you who want to follow along, please install the following software (preferably in this order):
- Please install Git: Git
- Please install R: R
- Please install RStudio: RStudio Desktop
- Please install a visual GitHub Interface. For cross-operating system compatibility, I recommend Fork: Fork. It is currently available for free on Mac and Windows. If you use Linux, then you don't need a GUI and/or can figure this out on your own.
That's me! It is the default file that Git will look to for information about a project.
Within the scripts directory, you will find some simple R scripts for creating and analyzing data. We will be working with these to demonstrate how to use GitHub through RStudio.
The data directory contains the results to be analyzed in this project. I am using material from Dani Navarro's (homepage) freely available Learning Statistics with R book page for book . I highly recommend it.
The figs directory contains saved plots and other figures.
The manuscript directory contains any manuscripts in progress.
The presents directory contains presentations related to the project.
All the files on the local computer that should not be tracked by Git. RStudio will automatically generate a number of rules for standard R files that should not be included in the global repository (e.g., current workspace R files).
- To start a project managed through RStudio, I recommend creating a repository on GitHub first, and then cloning it when you create a new project in RStudio. It is not easy to create a local repository first that you use to create one on GitHub. Create an empty one on GitHub first and then clone it through the RStudio software.
- On Windows, the Windows Credential System is often used to integrate git and GitHub together. You should delete the git entry there and then it will automatically get recreated the next time you push to GitHub (and you will be asked then to re-enter your GitHub login/pass).
- A basic no-jargon tutorial.
- The official Git book from Pro Git.
- Resources from GitHub link
- Integrating a GitHub repository into OSF osf link
- Vuorre and Curley (2018) wrote a nice introduction to using git for psycholgists. It is freely available here. The supplemental material has additional step-by-step instructions.