There are many ways of formatting R code, tables and graphs for publishing.
R users often want to publish analysis and results in a reproducible way. See Reproducible R for details.
Probability Distributions with R
Formatting entire documents
This modified text is an extract of the original Stack Overflow Documentation created by following contributors
and released under CC BY-SA 3.0