RR Practical

Support material for the “work in groups on reproducible research” of the workshop: “Open science, research integrity and science in society”, September 23-24, Brussels

Getting practice with Markdown

For a bare minimum of the Markdown syntax, that turns out to be a maximum at the same time, check the Examples on WikiPedia Markdown article.

We are going to get practice with Markdown first using an online editor, like StackEdit or dillinger, before translating a Markdown file into other formats (docx, html, …) using either the online pandoc server, or using pandoc installed on your own computer (see the installation instructions).

As an exercise, you can take the first few paragraphs of this web page, make a Markdow version and convert it to docx, html or whatever you want / like.

Git and GitLab

We will then demonstrate the very basic of Git through GitLab. Having an account on gitlab.com (that’s free for the basic version) or on the GitLab server of your institution will be a plus but not an absolute necessity. More specifically we will:

  1. Create a new empty project.
  2. Edit the README.md file with GitLab editor.
  3. Add the Markdown file you created previously as a new file to the project.
  4. Edit this file, modify slightly, commit your changes.

Numerical notebook examples with R and Python

We will end by reproducing a “famous” graphic of William Playfair (one of the creators of modern quantitative data representation) showing together the wheat price and the workers’ weekly salary in England between 1565 and 1821. Two different ways of constructing a “dynamic document / numerical lab book” implementing this task are going to be illustrated:

Again having R, RMarkdown and RStudio or Python and jupyter will be a plus, but by no mean a necessity, the whole point being to give a basic illustration of what actual numerical lab books are.