Session Ready
Exercise

Collapsing blocks in the knit report

By default, the collapse option is set to FALSE, and the code and any output appear in the knit file in separate blocks. You encountered this earlier when creating plots of the data. In this exercise, you'll modify the Markdown file so that the code and resulting warning messages appear in the same block.

Instructions
100 XP
  • Using collapse, modify each code chunk that renders a plot with a warning, so that the code and output are not split into multiple blocks in the final report.