forked from cis-ds/course-site
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cm009.Rmd
32 lines (23 loc) · 972 Bytes
/
cm009.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
---
title: "Debugging and defensive programming"
output: html_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(cache=TRUE)
```
# cm009 - April 23, 2018
## Overview
* Define a bug
* Review best practices for reading, writing, and styling code
* Distinguish between errors, warnings, and messages
* Introduce `traceback()` and explain how to read it
* Identify and practice methods for error handling and recovery
## Before class
* Read [**Debugging, condition handling, and defensive programming** in *Advanced R*](http://adv-r.had.co.nz/Exceptions-Debugging.html)
* Skim/read [The `tidyverse` style guide](http://style.tidyverse.org/)
* Review [21.6 Dealing with failure in *R for Data Science*](http://r4ds.had.co.nz/iteration.html#dealing-with-failure)
## Slides and links
* [Slides](extras/cm009_slides.html)
* [Bugs and styling code](program_style.html)
* [Debugging and condition handling](program_condition_handle.html)
## What you need to do