Reproducible Research using R
|Anyone||Beginner/Intermediate R||Working knowledge of R/RStudio||3 hour workshop|
This repository has teaching materials for a 3 hour, hands-on Reproducible Research using R workshop led at a relaxed pace.
Reproducible research is as important for computational analysis as it is at the bench. Integrating your R data analyses into a report format allows for easy retrieval of the packages/versions and code used to generate your results and figures. It allows for efficient communication of your results with your collaborators. The knitr R package allows for the easy generation of professional reports for any R analysis, while allowing for customization and easy revision. In this 3-hour workshop, we will cover the simple RMarkdown syntax and explore options for customizing your reports.
- Understand Rmarkdown syntax and available features: Exploring the syntax of the Rmarkdown language and different available features.
knitrfor report generation: Practicing with
knitroptions for customizing reports.
These materials are developed for a trainer-led workshop, but also amenable to self-guided learning.
|Introduction to Reproducibility||10 min|
|RMarkdown Basics||45 min|
|RMarkdown Intermediate||45 min|
|Practice with RMarkdown||30 min|
Setup and Installation Requirements
Download the most recent versions of R and RStudio for your laptop:
Install the required R package by running the following code in RStudio:
install.packages("knitr") install.packages("tidyverse") install.packages("BiocManager") BiocManager::install("pheatmap")
Load the libraries to make sure the packages installed properly:
library(knitr) library(tidyverse) library(pheatmap)
These materials have been developed by members of the teaching team at the Harvard Chan Bioinformatics Core (HBC). These are open access materials distributed under the terms of the Creative Commons Attribution license (CC BY 4.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.