Closed yutannihilation closed 2 years ago
https://github.com/tidyverse/ggplot2/pull/4671#issuecomment-1046090308
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
compute_group
https://github.com/tidyverse/ggplot2/blob/c89c265a57fd71f8a0288ce81037296aadc0a012/R/stat-binhex.r#L52
Related: https://github.com/tidyverse/ggplot2/issues/4843
Resolved by #4856
https://github.com/tidyverse/ggplot2/pull/4671#issuecomment-1046090308
I can reproduce this on my local without hexbin installed.
I think this is because
check_installed
is insidecompute_group
, where the error is ignored.https://github.com/tidyverse/ggplot2/blob/c89c265a57fd71f8a0288ce81037296aadc0a012/R/stat-binhex.r#L52