This assignment will allow you to demonstrate your ability to “fork” a repository on GitHub, clone it to RStudio, make some local changes, push them to GitHub, and submit a “pull request”. If you need a reminder as to how this process works, please refer to the notes here.
Navigate to the repo https://github.com/FISH549/assignment-2 and fork it to your own GitHub account.
Clone your forked copy of the repo to your own computer by creating a new project in RStudio.
Create a new branch in your local repo called
develop
.
In the develop
branch, create a new R script with the
following information, making sure to replace First Last
with your name:
## A simple function for adding 2 numbers
## written by First Last
add <- function(a, b) {
return(a + b)
}
Save this script as add_FL.R
, making sure to replace
FL
with the initials of your first and last name.
Commit the new R script you just created to your local repo. When you are finished, push this file to your remote repo on GitHub.
Navigate to your remote repo on GitHub to review your new file and submit a pull request (PR). Give your PR an informative title and leave a short description of what your new file does. When you’re finished, submit the PR for Mark’s review.