Open and Reproducible Research with R at useR!2017

Tutorial taught by Mine Cetinkaya-Rundel and Colin Rundel

Assembled by François Michonneau and Hilmar Lapp, using material from the Reproducible Research Curriculum

We are excited to announce that our workshop proposal “Open and Reproducible Research with R” has been accepted as a tutorial for useR!2017, Brussels. The tutorial session will take place on July 4th, 2017.

The content of this workshop will be a condensed version of a workshop Data Carpentry teaches in 2 days that introduces best practices for Reproducible Science with R. This will be an opportunity for you to learn more about this topic, and to experience the teaching style of Data Carpentry workshops.

Setup

Make sure you have installed:

and then install the tidyverse, rmarkdown, and testthat packages. From the R terminal:

install.packages(c("tidyverse", "rmarkdown", "testthat"))

For this workshop, we will use the gapminder dataset. We will provide you with the datasets as needed, but if you wish to explore this dataset further, we encourage you to install Jenny Bryan’s package of the same name:

install.packages("gapminder")

R Markdown demonstration files

You need to setup your working directory such that the Rmd files are at the root of it, and the CSV files are in a data foder:

+--- data/
|    |
|    +--- gapminder-5060.csv
|    +--- gapminder-7080.csv
|    +--- gapminder-90plus.csv
|    +--- gapminder.csv
|
+--- 01-mot-rep-soln.Rmd
+--- 02-extend-soln.Rmd
+--- 03-more-lit-prog.Rmd