generated from r4ds/bookclub-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
11.Rmd
46 lines (35 loc) · 957 Bytes
/
11.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Debugging R code
**Learning objectives:**
- THESE ARE NICE TO HAVE BUT NOT ABSOLUTELY NECESSARY
## SLIDE 1 {-}
- ADD SLIDES AS SECTIONS (`##`).
- TRY TO KEEP THEM RELATIVELY SLIDE-LIKE; THESE ARE NOTES, NOT THE BOOK ITSELF.
## Meeting Videos {-}
### Cohort 1 {-}
`r knitr::include_url("https://www.youtube.com/embed/8ZwvgUHzpMo")`
<details>
<summary> Meeting chat log </summary>
```
00:41:34 Jon Harmon (jonthegeek): options(error = traceback)
00:54:46 Jon Harmon (jonthegeek): options(error = recover)
00:56:56 Priyanka: # example - traceback() | trace() | browser()
f<-function(x) {
r<-x-g(x)
r
}
g<-function(y) {
r<-y*h(y)
r
}
h<-function(z) {
r<-log(z)
if(r<10)
r^2
else
r^3
}
00:59:01 mohamed.shoeb: https://yjunechoe.github.io/ggtrace/
01:05:05 Jon Harmon (jonthegeek): From the sink help:
Do not sink the messages stream unless you understand the source code implementing it and hence the pitfalls.
```
</details>