Project Assignments

  • Each student has its own private repository.
  • The name of the repository is the student’s UW netid.
  • All students and instructors can see the content of the repos.
  • Only the student, the instructor, and the TA can edit the content of the repo.

1. No need to Fork the repository

For the project assignments, you don’t need to create your own copy (fork) of the original repository that it’s located in the UW-POLS503 organization.

2. Clone the repository

You do need to clone the repo.

  1. Copy the URL of your repository from GitHub.

  1. Open RStudio and create a new Git RProject: File > New Project > Version Control > Git

  2. Enter the URL to where it says Repository URL. It will create a directory name with your UW netID. This new directory will have the original files in the repository plus an .Rproj and .gitingore file.

3. Work on a new Project Assignment

Every time you work on a new assignment:

  1. Create a new file (e.g. proposal.md).
  2. Save it.

4. Submitting a new Project Assignment

  1. Push and Commit the changes you made to existing files, or the new files you created, to the online version of the repository. Follow the same instructions in here.

  2. Create a new issue in your private repository in GitHub.

  3. Title the new issue “Review Project Assignment ”. In the issue message write “cc @jrnold @CasAndreu”. This is how you submit your assignment, and let the instructors know it is ready to review. You’re done!

Homework Assignments

We’ll create a new repository in the UW-POLS503 organization for each assignment (e.g. Assignment_01 ). Follow the following steps to work on and submitt the homework.

1. Fork the repository.

Now you have a copy of the repository in your onlineGitHub account.

2. Clone the repository using RStudio.

  1. Copy the URL of your repository from GitHub.

  1. Open RStudio and create a new Git RProject: File > New Project > Version Control > Git

  2. Enter the URL to where it says Repository URL. It will create a directory named Assignment_01 that will have the original files in the repository plus an .Rproj and .gitingore file.

3. Create an R Markdown file: solutions.Rmd.

  1. File > New File > R Markdown

  2. Give it a Title: e.g. ** Assignment 1**.

  3. Choose PDF as the Default Output Format.

  4. Now you have an R Markdown document that looks similar to this.

  5. Write your solutions in this R Mardown document.

4. Commit and Push changes.

Once you’re done writing your solutions:

  1. Make sure you saved the final version of solutions.Rmd.

  2. Staged the changes and click on Commit.

  3. Write a commit message and click on Commit again. A window message should open indicating that the commit has been made. Close it.

  4. Finally, click on Push.

Another window message shoud open indicating that you have pushed the changes to the online verison of the repository in your GitHub account.

<div style="width:500px; height=200px">
![](img/push2.png)
</div>

5. Initiate a Pull Request.

Once you’re done with the assignment and your solutions.Rmd is already in your online version of the assignment’s repository:

  1. Click on New Pull Request.

  2. Click on Create pull request.

  3. Title your pull request Submission and click on Create pull request.