Overview

We will use GitHub classroom for homework & project submission. This guide provides information for how to submit an assignment.

Using R Markdown

You will write your assignment using R Markdown with a given template. Check out this typical template and learn how to use R Markdown to create a report.

Naming your files

hw<XX>_<lastname-firstname>_<ID>.<suffix>
  • The above is 01 for homework #1, 02 for homework #2 and so on.
  • Replace with your last and first name concatenated with a dash, all lowercase. For example, lin-yuru.
  • is your PITT ID.
  • The file suffix will be one of .r, .R, .rmd, .Rmd, .html. (You might have other types of files in your project submission, but typically not in homework assignment.)

The files one would produce for homeworks 1 might be:

  • hw01_lin-yuru_XY123.R
  • hw01_lin-yuru_XY123.Rmd
  • hw01_lin-yuru_XY123.html

How to submit

You will get a GitHub Classroom assignment link. Follow the link and accept the assignment. It will automatically create a repository with the starter code or other material. You can then clone the repository, do the assignment, and commit/push your work to the repository. Note, in order to finish your assignment, you need to (1) commit AND push all the required files to the repository, and (2) publish your RMarkdown note and capture the URL to enter it on the Canvas assignment entry.

Use HTML Preview to publish your HTML note.

Learn how to work with Git/GitHub/GitHub Classroom:

References & Further Reading

You can use RStudio to connect with GitHub. Check out how to do it:

Acknowledgments

This document was adopted from Prof. Jenny Bryan’s How to submit homework.