Literate R programming with reST using ascii-package ==================================================== :Author: Matti Pastell :website: http://mpastell.com .. contents:: Table of Contents Intro ------ This a simple example [#]_ of the usage of `ReStructuredText `_ for literate R programming with the ReST Sweave driver in the `ascii `_ - package. Example usage -------------- The code chunks have the same options as the original **Sweave** driver. Here is *an example* of executing some code and adding a Figure: Results in a table __________________ <>= library(MASS) data(npk) aov.npk <- aov(yield~block + N*P*K, npk) print(ascii(summary(aov.npk)), 'rest') @ Adding a figure ________________ <>= x = rnorm(1000) hist(x, freq = FALSE) xax = seq(-10, 10, by = 0.1) lines(xax,dnorm(xax, mean(x), sd(x)), col = 4, lwd = 2) @ .. [#] This is a footnote