thebioengineer / camcorder

Record plots generated during an R session and replay as a gif!
https://thebioengineer.github.io/camcorder/
Other
201 stars 7 forks source link

Capture `patchwork` output #12

Closed TylerGrantSmith closed 3 years ago

TylerGrantSmith commented 4 years ago

This should follow a similar principle.

library(ggplot2)
library(patchwork)
g <- ggplot()
h <- ggplot()
dir <- fs::file_temp()
camcorder::gg_record(dir)
g / h

### errors because no print captured
camcorder::gg_playback()
#> Error in normalizePath(path.expand(path), winslash, mustWork): path[1]=NA

Created on 2020-09-11 by the reprex package (v0.3.0)

thebioengineer commented 4 years ago

Thanks for the comment! This is currently addressed in #9 and will be merged in soon!

thebioengineer commented 3 years ago

resolved with #9 - many months after I promised it would be merged "soon" 😂