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.
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.
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
andggplot2
. The error produced is connected todplyr
even when it is not loaded (but is installed in the library).