+ - 0:00:00
Notes for current slide
Notes for next slide

Rmarkdown:
Improving reproducibility

RefReshing FRiday
09 April 2021

Sean Lucey

1 / 5

What is R Markdown

Simplified work flow that can aid in reproducibility by containing computer code and narrative in the same document

Can be used to generate:

  • Letters
  • Websites
  • Journal articles
  • Books
  • Presentations
2 / 5

How does it work?

  • Uses the knitr package to embed R or other computer language in to markdown
    • Markdown is plain text that can be read by both humans and computers
  • Pandoc then converts the markdown into the output format of your choice
  • Output can be Word, PDF, html
  • Some features work better than others depending on what output you choose






Rmarkdown flow

3 / 5

Three basic components

Metadata

Text

  • Syntax is Markdown

Code

  • Can be incorporated in two ways
  • Inline using
  • Code chunk using
---
title: "Rmarkdown:<br /> Improving reproducibility"
subtitle: "RefReshing FRiday<br \> 09 April 2021"
author: "Sean Lucey"
output:
xaringan::moon_reader:
css: ["default", "libs/EDAB_theme3_508_SOE_16by9.css"]
---


This is how you make something **bold** or *italicized*

This is how you make something bold or italicized


`r 2+2`
```{r}
x <- 2
y <- 2
x + y
```
4 / 5

Packages that extend R Markdown

Rmarkdown family

5 / 5

What is R Markdown

Simplified work flow that can aid in reproducibility by containing computer code and narrative in the same document

Can be used to generate:

  • Letters
  • Websites
  • Journal articles
  • Books
  • Presentations
2 / 5
Paused

Help

Keyboard shortcuts

, , Pg Up, k Go to previous slide
, , Pg Dn, Space, j Go to next slide
Home Go to first slide
End Go to last slide
Number + Return Go to specific slide
b / m / f Toggle blackout / mirrored / fullscreen mode
c Clone slideshow
p Toggle presenter mode
t Restart the presentation timer
?, h Toggle this help
Esc Back to slideshow