Learning objectives

Overview

So far you have been uploading your .R file with comments and code. For many making graphs and doing other types of analysis working with .R files is ok and even preferred, since they are only using or sharing the results and not the code. However, a key to reproducibile research is sharing your code and results with other scientists. One popular way to do this is to make a report that includes both using the RMarkdown language and the knitr R package. To install RMarkdown and knitry go to Tools > Install Packages and type the name of the package to install from CRAN repository (e.g. knitr). This will install both knitr and RMarkdown. You only need to do this once unless you are working on the BCRC computers.

RMarkdown is a simple syntax similar to the markup styles used in Wikis. Please take 10 minutes to go through the intro at https://rmarkdown.rstudio.com/. After you install the knitr package you will see a knitting ball in your R console menu in RStudio. There are several important differences between working with .R and Rmd files.

Lab Reports

Lab Reports will be made using the RMarkdown notation. To make a Lab Report