See Etherpad for notes during the tutorial, or to ask questions.
-
Reminder about literate programming and Markdown
-
Pandoc's markdown syntax
- YAML metadata
- LaTeX math
- syntax highlighting
- raw HTML/LaTeX
- tables
- footnotes
- citations
-
R Markdown output formats
- HTML, PDF, Word, presentations, ...
- Process: Rmd -> (knitr) -> md -> (pandoc) -> output
- rmarkdown package does the whole thing
-
Customizing output
- Basic format options: TOC, numbered sections,
self-contained
,fig_height
, themes, ... - Customize CSS for HTML output
- ioslides example re slide numbers
- Customize LaTeX preample for PDF output
- Pandoc templates
- Customize Word templates (header/footer, font styles, ...)
- Basic format options: TOC, numbered sections,
-
Closer look at structure of output format object
- knitr options (chunk options, hooks, etc)
- pandoc options
- pre/post-processor functions
-
Examples of new output formats
html_vignette
,rtf_document
- tufte package (
tufte::tufte_html()
,tufte::tufte_handout()
) - Long-form documents using bookdown
- cross-references of figures/tables/sections
- separate HTML pages for chapters
-
Journal articles (rticles)
-
Build websites
-
HTML widgets
-
Shiny apps within R Markdown
-
Run code from other languages (C, C++, Python, ...)