Skip to content

Chapter 11 does not render #411

@RaymondBalise

Description

@RaymondBalise

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions