In this chapter, we discussed how R code and plain text can be combined to generate a marked-up report. The markup systems that RStudio supports—Notebooks, Markdown, HTML, and LaTeX—have been discussed with minimal examples and an introduction to code formatting and chunk options was given.
In the next chapter, we will see how RStudio supports writing functions and extension packages for R.