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 #813

Open
mgarbuzov opened this issue Mar 18, 2024 · 1 comment
Open

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

mgarbuzov opened this issue Mar 18, 2024 · 1 comment

Comments

@mgarbuzov
Copy link

mgarbuzov commented Mar 18, 2024

Re-creating issue #771 which was closed due to inactivity, but the issue still persists. It would be great if it was addressed.

hcaes_string() allows passing aesthetics arguments as strings, it is rarely used, but in some situations it is a life-saver.

The minimal example below works fine in a fresh R session.

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

However, if certain other packages are also loaded, the above will no longer work. So far I have discovered this to be the case with forecast and ggplot2. The error produced is connected to dplyr even when it is not loaded (but is installed in the library).

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

@EhsonGhandehari
Copy link

Hi, I am encountering the same exact issue. Is there any updates on this?

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

No branches or pull requests

2 participants