Codefrag in a deck
Annotations, one arrow press at a time
Stepping through annotations
Press the arrow keys: each annotation is revealed in turn, with its tooltip.
library(dplyr)
starwars |>
filter(species == "Droid") |>
select(name, height, mass)
- 1
-
Load the package.
- 2
-
Start from the dataset.
- 3
-
Keep the droids.
- 4
-
Keep three columns.
With line highlighting
Annotations follow the highlighted lines when both are present.
library(dplyr)
starwars |>
filter(species == "Droid") |>
select(name, height, mass)
- 1
-
Load the package.
- 2
-
Start from the dataset, and keep the droids.
- 3
-
Still there.
- 4
-
Keep three columns.
Choosing when each appears
code-annotation-fragment-indices interleaves the annotations with the other fragments on the slide.
library(dplyr)
starwars |>
filter(species == "Droid")
- 1
-
Load the package.
- 2
-
Start from the dataset.
- 3
-
Keep the droids.
Why it helps
Without the plugin, the annotations are all present at once and the audience reads ahead.