Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hcaes_string() doesn't work due to conflicts with other packages #771

Closed
mgarbuzov opened this issue Jul 6, 2022 · 1 comment
Closed

Comments

@mgarbuzov
Copy link

Using the minimal example, in a fresh R session:

library(highcharter)
hchart(cars, type = "line", hcaes_string(x = "speed", y = "dist"))

The above example works fine. However, if certain packages are loaded prior to highcharter, the code breaks down and no longer works. I have so far discovered this to be the case with forecast and ggplot2. Weirdly enough, the error displayed is

Error in `dplyr::mutate()`:
! Problem while computing `x = ~speed`.
x `x` must be a vector, not a `formula` object.

...while dplyr hasn't been loaded (but I have it installed in the package library). This must be because popular packages have many dependencies, and those dependencies have their own dependencies and so on, so not sure how easy the problem is to pin-point and fix. However, it only affects hcaes_string(). The version with normal hcaes() works fine without any conflicts.

@stale
Copy link

stale bot commented Aug 7, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Feel free to reopen it if you find it necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant