EvaMaeRey / flipbookr

Presenting code step-by-step and side-by-side with its output
https://evamaerey.github.io/flipbookr/
Other
198 stars 20 forks source link

break_type = 1 breaks #55

Open EvaMaeRey opened 2 years ago

EvaMaeRey commented 2 years ago

What a shame!

EvaMaeRey commented 1 year ago

I would like to get this working for ind2cat promo work. code/output side by side, using chunk_reveal().

EvaMaeRey commented 1 year ago

When including

r chunk_reveal("my_cars", break_type = 1)

cars %>%
  filter(speed > 4) %>%
  ggplot() +
  aes(x = speed) + #BREAK
  aes(y = dist) + #BREAK
  geom_point(
    alpha = .8, 
    color = "blue" 
    ) + 
  aes(size = speed) #BREAK

Seeing this...

Error in code_seq[[i]] : attempt to select less than one element in integerOneIndex

...but fb was produced, and code-output pairing did show.