jbkunst / highcharter

R wrapper for highcharts
http://jkunst.com/highcharter/
Other
717 stars 147 forks source link

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

Open mgarbuzov opened 3 months ago

mgarbuzov commented 3 months ago

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 commented 3 months ago

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