1. Learn
  2. /
  3. Courses
  4. /
  5. Reporting with R Markdown

Exercise

Modifying the report using include and echo

The exercises in the course have used include = FALSE to prevent the code and results of the setup and data chunks from appearing in the knit report. Although you won't modify those options, since the code and results from those chunks should be excluded from the report, it's important to note how they impact the final report.

In this exercise, you'll use the echo option to modify whether or not the code appears in the report.

Instructions

100 XP
  • Using echo, add to the global chunk options of the report to exclude the code from all code chunks from appearing in the knit report.