2022-04-22

What is reproducible research?

  • Interlaced code, data (Raw) and text
  • Repos on github
  • in R: Rmarkdown (Rmd)

Reproducibility en R

  1. A folder
    • Raw data (csv, xls, html, json)
    • Code and text (Rmd, Rpres, shiny)
    • Results (Manuscript, Web Page, App)

Some motivation

Interactive data

More motivation

External Resources

Parts of an Rmd

Text

link

# Title

## subtitle

*cursive*

**bold**

[link](https://stackoverflow.com/users/3808018/derek-corcoran)

Chunks

knitr::include_graphics("Chunk.png")

  • echo = T o F show code
  • message = T o F shows message of packages
  • warning = T o F shows or does not show warning
  • eval = T o F runs or does not run the code
  • cache = T o F saves the result or not
  • For more options check this link

Inline code

Inline

  • Code interlinked with text
  • To update means, maximum, minimum
  • p-values, statistical differences
  • They can be vectors, and not tables.

Activities

Activities

  1. Clone a repository (this one).
  2. Generate a report with bookdown, using the template in this repo.
  3. Add bibliography (.bib file) to manage your references.
  4. Add a couple of plots and use crossreferences for it.
  5. Generate a pdf report (overleaf example) and rticles example.
  6. Generate a .docx report, send it to someone else to edit it and check the control changes using the redoc package.
  7. if we have time, we can add a ioslides presentation