RMarkdown and knitr presentation

Download r eBook

Syntax

  • Header:
    • YAML format, used when the script is compile to define general parameter and metadata

Parameters

Parameterdefinition
titlethe title of the document
authorThe author of the document
dateThe date of the document: Can be "r format(Sys.time(), '%d %B, %Y')"
authorThe author of the document
outputThe output format of the document: at least 10 format available. For html document, html_output. For PDF document, pdf_document, ..

Remarks

Sub options parameters:

sub-optiondescriptionhtmlpdfwordodtrtfmdgithubioslidesslidybeamer
citation_packageThe LaTeX package to process citations, natbib, biblatex or noneXXX
code_foldingLet readers to toggle the display of R code, "none", "hide", or "show"X
colorthemeBeamer color theme to useX
cssCSS file to use to style documentXXX
devGraphics device to use for figure output (e.g. "png")XXXXXXX
durationAdd a countdown timer (in minutes) to footer of slidesX
fig_captionShould figures be rendered with captions?XXXXXXX
fig_height, fig_widthDefault figure height and width (in inches) for documentXXXXXXXXXX
highlightSyntax highlighting: "tango", "pygments", "kate","zenburn", "textmate"XXXXX
includesFile of content to place in document (in_header, before_body, after_body)XXXXXXXX
incrementalShould bullets appear one at a time (on presenter mouse clicks)?XXX
keep_mdSave a copy of .md file that contains knitr outputXXXXXX
keep_texSave a copy of .tex file that contains knitr outputXX
latex_engineEngine to render latex, or ""pdflatex", "xelatex", lualatex"XX
lib_dirDirectory of dependency files to use (Bootstrap, MathJax, etc.)XXX
mathjaxSet to local or a URL to use a local/URL version of MathJax to renderXXX
md_extensionsMarkdown extensions to add to default definition or R MarkdownXXXXXXXXXX
number_sectionsAdd section numbering to headersXX
pandoc_argsAdditional arguments to pass to PandocXXXXXXXXXX
preserve_yamlPreserve YAML front matter in final document?X
reference_docxdocx file whose styles should be copied when producing docx outputX
self_containedEmbed dependencies into the docXXX
slide_levelThe lowest heading level that defines individual slidesX
smallerUse the smaller font size in the presentation?X
smartConvert straight quotes to curly, dashes to em-dashes, ... to ellipses, etc.XXX
templatePandoc template to use when rendering fileXXXXX
themeBootswatch or Beamer theme to use for pageXX
tocAdd a table of contents at start of documentXXXXXXX
toc_depthThe lowest level of headings to add to table of contentsXXXXXX
toc_floatFloat the table of contents to the left of the main contentX

Related Examples

Stats

172 Contributors: 2
Tuesday, July 26, 2016
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook