diff --git a/index.html b/index.html index a2bcd36..7216cd7 100644 --- a/index.html +++ b/index.html @@ -820,7 +820,7 @@

traceback vs rlang functions

browser()

f <- function(x) {
-  browser(x)
+  browser()
   x + 1
 }
 
@@ -914,7 +914,7 @@ 

Your turn, exercise 01

-
+
15:00
@@ -1049,7 +1049,7 @@

Your turn, exercise 02

-
+
07:00
@@ -1226,7 +1226,7 @@

Your turn, exercise 03

-
+
10:00
@@ -1373,7 +1373,7 @@

Your turn, investigating a CRAN package

-
+
03:00
@@ -1417,7 +1417,7 @@

Your turn, investigating source code

Hints on next slides.

-
+
05:00
diff --git a/index.qmd b/index.qmd index 6ec84e5..1aea1b0 100644 --- a/index.qmd +++ b/index.qmd @@ -17,7 +17,6 @@ execute: # Agenda - Getting started Troubleshooting @@ -34,8 +33,6 @@ Special cases Read the source - - # Getting started ```{r} @@ -106,8 +103,6 @@ Artwork by [\@allison_horst](https://twitter.com/allison_horst). ::: - - # Troubleshooting ## 1. Search @@ -242,7 +237,6 @@ Troubleshooting strategies: ::: - # Moving on
@@ -471,7 +465,7 @@ Numbering and ordering differs between `traceback()` and rlang functions. ```{r, eval=FALSE, echo=TRUE, `code-line-numbers`="2"} f <- function(x) { - browser(x) + browser() x + 1 } @@ -498,8 +492,7 @@ g <- function(x) f(x) ::: columns ::: {.column width="35%"} - -Investigate objects +Investigate objects
@@ -516,28 +509,19 @@ Control execution
-::: {.small} - -| command | operation | -|---------|-------------------------| -| `n` | next statement | +::: small +| command | operation | +|---------|----------------------------------------| +| `n` | next statement | | `c` | continue (leave interactive debugging) | -| `s` | step into function call | -| `f` | finish loop / function | -| `where` | show previous calls | -| `Q` | quit debugger | +| `s` | step into function call | +| `f` | finish loop / function | +| `where` | show previous calls | +| `Q` | quit debugger | ::: - ::: - ::: - - - - - - ## Debugging your code ![](img/debugging_yours.svg) @@ -948,8 +932,6 @@ countdown( 2. WTF Ch 11.4 Debugging in Rmarkdown documents - - ## Piped expressions
@@ -974,8 +956,6 @@ gives trimmed tracebacks when using pipes - Matt Dray 2019 blog post [Fix leaky pipes in R](https://www.rostrum.blog/2019/04/07/fix-leaky-pipes/) - - ## Warnings