You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
library(ggplot2)
library(patchwork)
#> Warning: package 'patchwork' was built under R version 4.4.3#> Error: package or namespace load failed for 'patchwork':#> object 'is_ggplot' is not exported by 'namespace:ggplot2'p1<- ggplot(mtcars) + geom_point(aes(mpg, disp))
p2<- ggplot(mtcars) + geom_boxplot(aes(gear, disp, group=gear))
p1+p2#> Error in `ggplot_add()`:#> ! Can't add `p2` to a <ggplot> object.
Activity
Yunuuuu commentedon Oct 22, 2025
This appears to be a duplicate of issue #448. Please update your ggplot2 package, as
is_ggplotwas exported in ggplot2 version 3.5.2.Chrismarsh commentedon Feb 16, 2026
I think the CRAN
ggplot2req should be bumped to make this clear, as it currently states: