The ggbuild() function is preventing chapter 11 from rendering because it is referencing ggplot2:::scales_transform_df and it does not exist. I poked around in the git history for {ggplot2} and it appeared in these two commits: 969cde2bf541888ea6a8fe63d2e8edf662fb01c2 and 83697ed0413ab1d0c07277f53e43017de184aac8. Those were made around v3.4.4. I can see from plot-build.R in the ggplot2 repo, that the function (and a pile of others) were eventually renamed to drop the scales_ prefix in: 7d8c52b346e4c595d20cbd43ff300f559f569586
I chased down the rabbit hole of making ggbuild() from interals_ggbuild.R in the book repo match ggplot_build.ggplot() in the ggplot2 (3.5.1) version of plot-build.R until I ran into this line
plot$guides <- plot$guides$build(npscales, plot$layers, plot$labels, data, plot$theme)
throwing:
Error in build(..., self = self) : unused argument (list())
and I gave up....
I (obviously) would love to see the final version of chapter 11. If I can help please drop me a note.
The
ggbuild()function is preventing chapter 11 from rendering because it is referencingggplot2:::scales_transform_dfand it does not exist. I poked around in the git history for{ggplot2}and it appeared in these two commits: 969cde2bf541888ea6a8fe63d2e8edf662fb01c2 and 83697ed0413ab1d0c07277f53e43017de184aac8. Those were made around v3.4.4. I can see from plot-build.R in the ggplot2 repo, that the function (and a pile of others) were eventually renamed to drop thescales_prefix in: 7d8c52b346e4c595d20cbd43ff300f559f569586I chased down the rabbit hole of making
ggbuild()frominterals_ggbuild.Rin the book repo matchggplot_build.ggplot()in the ggplot2 (3.5.1) version ofplot-build.Runtil I ran into this linethrowing:
and I gave up....
I (obviously) would love to see the final version of chapter 11. If I can help please drop me a note.