Erol Taymaz Department of Economics Middle East Technical University
Reproducible research
Data [csv, html, Excel, MySQL]
Analysis [EViews, Stata, R]
Reporting
Figures and tables [Excel]
Documents [Word, LaTeX]
Presentation [PowerPoint, pdf]
Web [html]
Sharing
Interactive
Reproducible research
Rmarkdown: Reproducible research with R
.Rmd files
Header
Text (with simple formatting)
Code
Code chunks
Inline code
Documents
Word, odt, rtf, pdf, html, presentation (ioslides, beamer, slidy), dashboard, websites, etc.
Header
At the beginning of the file
Starts and ends with “- - -”
Options
title
subtitle
author
date
output
Output options (Table of Contents, templates, etc)
css files
Other options
Text and formatting
Headers
Lists
Links
Images
Block quotes
Latex equations
Horizontal rules
Tables
Footnotes
Bibliographies and Citations
Slide breaks
Italicized text
Bold text
Superscripts
Subscripts
Strikethrough text
Code
Code chunks
Starts with ```{r}``` and ends with ```
Inline code
Write the code within ` and `
Code chunk options
include = FALSE prevents code and results from appearing in the finished file. R Markdown still runs the code in the chunk, and the results can be used by other chunks.
echo = FALSE prevents code, but not the results from appearing in the finished file. This is a useful way to embed figures.
message = FALSE prevents messages that are generated by code from appearing in the finished file.
warning = FALSE prevents warnings that are generated by code from appearing in the finished.
results = “hide” does not show results
results = “asis” shows results as is (for html, text, etc.)