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

Exercise

Excluding warnings

Previously, you used the collapse option so that the code and resulting warning messages appear in the same block in the knit report. In this exercise, you'll use the warning option to prevent warnings from appearing in the final report.

Instructions

100 XP
  • Using the warning option, add to the code chunks that render a plot with a warning, so that the warning messages no longer appear in the knit file.