\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)
## speed dist
## 1 4 2
## 2 4 10
## 3 7 4
## 4 7 22
## 5 8 16
## 6 9 10
cor(cars)
## speed dist
## speed 1.0000 0.8069
## dist 0.8069 1.0000
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)
## R version 2.15.2 (2012-10-26)
## Platform: x86_64-pc-linux-gnu (64-bit)
##
## attached base packages:
## [1] methods stats graphics grDevices utils datasets base
##
## other attached packages:
## [1] ggplot2_0.9.3 knitr_0.9.2
##
## loaded via a namespace (and not attached):
## [1] colorspace_1.2-0 dichromat_1.2-4 digest_0.6.0
## [4] evaluate_0.4.3 formatR_0.7 grid_2.15.2
## [7] gtable_0.1.2 labeling_0.1 MASS_7.3-22
## [10] munsell_0.4 plyr_1.8 proto_0.3-10
## [13] RColorBrewer_1.0-5 reshape2_1.2.2 scales_0.2.3
## [16] stringr_0.6.2 tools_2.15.2
so keep your audience awake!