Nothing
% Writing beautiful and reproducible slides quickly % Yihui Xie % 2012/04/30
# set global chunk options library(knitr) opts_chunk$set(cache=TRUE)
\documentclass{beamer}
and \title{}
, I have finished my first slide with markdown-
" instead of \begin{itemize}
and \item
; how things can be simpler?head(cars) cor(cars)
library(ggplot2) qplot(speed, dist, data = cars) + geom_smooth()
pandoc -s -S -i -t dzslides --mathjax knitr-slides.md -o knitr-slides.html
knitr-slides.md
is the markdown output from its source: library(knitr); knit('knitr-slides.Rmd')
Knit HTML
in RStudiopre
blocks should have max-width
and max-height
)It is good to include the session info, e.g. this document is produced with knitr. Here is my session info:
print(sessionInfo(), locale=FALSE)
out.width
which will be used in <img width=... />
, e.g. out.width=400px
so keep your audience awake!
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.