Make different documents by changing the format!
Incorporate code into your work …
code
x = 1 + 1
… and report the computations later \(x =\) 2.
Even insert figures:
library(ggplot2) ggplot(mpg, aes(x = hwy, y = cty, color = cyl)) + geom_point(alpha = 0.5, size = 2) + scale_color_viridis_c() + theme_minimal()
Figure 1: City and highway mileage for 38 popular models of cars.