Why R Markdown?
|
Reproducible research is key for scientific advancement.
R Markdown can help you to organize, have better control over and produce reproducible research.
|
Getting Started with R Markdown
|
Starting a new Rmd File
Anatomy of an Rmd File (YAML header, Text, Code chunks)
How to knit an Rmd File to html
|
R Markdown Syntax: Headings & Lists
|
Heading syntax (#,
Bulleted lists (*, - , or +)
Numbered lists (1., 2., etc.)
|
R Markdown Syntax: Hyperlinks, Images & Tables
|
R Markdown syntax for hyperlinks
R Markdown syntax for images
You can resize images with R Markdown
You can easily create basic tables with R Markdown
|
R Markdown Syntax: Emphasis, Formulas & Footnotes
|
You can add *italicized* and *bolded* texts in R Markdown
There is an extensive LaTeX guideline for mathematics formatting
You can add create superscript text & linked footnotes
|
R Markdown Syntax: Citations & Bibliography
|
|
Finding & Applying Existing Journal Templates
|
The rticles pachage provides some journal templates
Whenever available, if you already know which journal you are submitting to, start your paper using the template
|
Knitr Syntax: Inline Code & Code Chunks
|
|
Knitr Syntax: Styling Code Outputs
|
Use kable() to create tables from dataframes
add captions to figures and images generated by code chunks
Set global chunk settings to automatically size & align outputs
Use bookdown to enable cross referencing
|
Publishing a Report
|
Define a new function for knit in the yaml to change your outputs
R-Studio lets you Knit and Publish to R-pubs
Github has Github Pages to publish work as a free webpage
|