Reproducible Reports with R Markdown

Amaury & Vincent

Cheat-sheet

Recto

Verso

Essentials

YAML, Markdown and chunks

YAML

---
title: "Document title"
author: "Lewis Forwarder"
output: html_document
---
  • Starts with ---, ends with ---
  • Intuitive syntax \(\rightarrow\) field: value
  • Outputs: HTML, docx, pptx, (pdf)

Markdown

Intuitive language to write, in plain text, a document that is transformed into a report.

Emphasis

*italic*   **bold**
_italic_   __bold__

Headers

# Header 1
## Header 2
### Header 3

Unordered List

* Item 1
* Item 2
    + Item 2a
    + Item 2b

Ordered List

1. Item 1
2. Item 2
3. Item 3
    + Item 3a
    + Item 3b

And so much more!