Skip to content

stat_binhex() fails to notify users that they need to install hexbin package #4736

Closed
@yutannihilation

Description

@yutannihilation

#4671 (comment)

I can reproduce this on my local without hexbin installed.

> library(ggplot2)
> d <- ggplot(diamonds, aes(carat, price))
> d + geom_hex()
Warning message:
Computation failed in `stat_binhex()`:

I think this is because check_installed is inside compute_group, where the error is ignored.

check_installed("hexbin", reason = "for `stat_binhex()`")

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behaviorhelp wanted ❤️we'd love your help!layers 📈

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions