To run the PA1_template.Rmd file under RStudio, you need to follow the steps below:
-
Download the zip file of this git repository.
-
Unzip the file.
-
Set the RStudio working directory to the unzipped directory which contains activity.cvs and PA1_template.Rmd e.g. for Window: setwd("C:\Users\Tony\dataScience1\RepData_PeerAssessment1")
-
If library reshape2 is not installed, please install this library first.
-
Load the PA1_template.Rmd into Rstudio, then run KnitHTML.