- In Emacs, compose a file "test.Rnw".
- Enter command for knitting: "M-n r" (Noweb => Sweaving/Tangling => Knit)
- Enter command for generating PDF report: "M-n P".
\documentclass{article} \title{Test} \begin{document} You can write inline expressions like $\pi=\Sexpr{pi}$. Here is a code chunk. <<a>>= x <- rnorm(100) summary(x) plot(x) @ \end{document}
No comments:
Post a Comment