Hi @thomasp85 ,
I think there's a bug (maybe related to #217).
library(ggplot2)
library(patchwork)
p1 = ggplot(mtcars, aes(x = factor(cyl), y = mpg)) + geom_violin()
p2 = ggplot(mtcars, aes(x = factor(cyl), y = mpg)) + geom_boxplot()
p = p1 + p2
str(p, max.level = 1)
But
> View(p)
Error: Index out of bounds
I tried on different machines and different OS (even server) and different RStudio versions. Same error
patchwork version 1.1.2 from CRAN