STAT 545A Collaborative Project Milestone 1
Description
This project aims to investigate the git + GitHub workflow and troubleshoot code. It is a collaborative effort by Yifan, Wakeel, Javier and James.
Table of Contents
Files in the Repository
README.md
: the introduction document for the project(essentially if you come back after 2 years, read this re-jog your memory)
TEAMWORK.md
: Describes guidelines for team collaboration.
troubleshooting-1.Rmd
: R Markdown document for troubleshooting exercises.
-
troubleshooting-2.Rmd
: R Markdown document for higher level /more difficult troubleshooting exercises.
- [Other Files]: Descriptions...
How to Run Code from This Repository
Pre-requisites
- Ensure you have R and RStudio installed on your computer. Download R from CRAN and RStudio from rstudio.com.
Steps
Clone the Repository using RStudio
- Launch RStudio.
- Go to
File -> New Project
.
- Choose
Version Control
.
- Select
Git
.
- In the "Repository URL" field, paste the URL of the GitHub repository.
- Choose where to save the repository in the "Create project as subdirectory of" field.
- Click
Create Project
.
Install Required Packages
- Open the R console within RStudio.
- If there's a file like
requirements.R
or install_packages.R
in the repository, run it. Otherwise, manually install packages.
Run the Code
- If the code is in an R script, you can run it by clicking
Source
.
- If the code is in an R Markdown file, you can knit the document by clicking the
Knit
button.
Troubleshooting
- If you encounter errors or missing packages, the error messages usually provide clues about what's missing or what needs to be fixed.