RStudio project
Omitting some unnecessary, buggy code
Necessary packages