Lecture 12
Overview
- Review and continue the lecture on Functions (see previous lecture)
- Practice debugging code
- Distinguish between errors, warnings, and messages
- Identify and practice condition handling approaches
Readings
Functions:
- Refer to the previous lecture to review the readings on Functions
Debugging and Defensive Programming:
- Read “Debugging R code” in What They Forgot to Teach You About R
- Review 21.6 Dealing with failure in R for Data Science
- Review How to read an R help page
- Review The
tidyverse
style guide
Class materials
Run the code below in your console to download today’s in-class exercises: usethis::use_course("css-materials/functions-bugs")