The following are pre-requisites for submitting the homework.
We assume you already have a Github account and you are able to push/pull into Github. If not, please read Lecture 01.
Claim your repository in Github - just accept your assignment invitation.
Install git in your local machine for your OS. Git can be obtained here.
A note on git installation on windows: If you are using a Windows laptop and your RStudio cannot link to your git account, please [download this git-bash] (https://git-for-windows.github.io/) and install it (with default settings).
As a part of your first homework, you will also create a README.txt file and push it into your repository. For every assignment you do, you have to create a README.txt file. It could be a very simple file, but you need to make one. Assignments without README.txt will not be graded and given zero.
Throughout this course you will create R Markdown files and render it as html which you will push to your coursework repository. Your markdown files should be named with an extension “.Rmd” or “.rmd”. RStudio’s “Knit to HTML” button will compile the document for you to actual HTML and open a preview. You may want to read the chapter R Markdown in the book R for Data Science if you want to get started before we cover this in the class.
Make sure you organize your files really well and name appropriately so it is easier for us to grade. Part of the grades will go for your ability to organize files for easier access and readability.
Accept your assignment in your GitHub home page. A repository will be created.
Open RStudio -> New Project… -> Version Control -> Git
Copy and paste the link of the repository. Choose the project desitination folder name and path.
Work on your homework. Make README.txt and save it to the directory.
Make sure you have saved the work in your local directory.
When you hit the save icon in the RStudio editor, you will see the saved file popping up in the Git panel of RStudio, ready to be committed. In case of markdown files (from home work 2), you need to do “Knit to HTML” in RStudio editor to render the associated HTML file.
The saved file should pop up in the Git pane in the environment pane. In case of knitted markdown file, you will see two files, the markdown and the html documents, ready to be committed to Git (after you knit).
You are done now.