Advice on supporting tidyeval in a package

I'm fairly happy with using tidyeval within the tidyverse packages, thanks to https://dplyr.tidyverse.org/articles/programming.html.

But I'm struggling to think of the simplest way to go about adding support for tidyeval operators to an existing package.

For instance, I'm a heavy user of the highcharter package and would like to add tidyeval to it. It currently uses naked column names as follows:

iris %>%
  hchart(
    type = "point",
    hcaes(
      x = Petal.Length,
      y = Sepal.Width,
      group = Species
    )
  )

Are there any tutorials that you folks know about?

Cheers,

Martin

1 Like

Hi @martinjhnhadley, yes, the updated version of @hadley 's Advanced R book expands on the ideas introduced in that vignette, specifically this chapter: https://adv-r.hadley.nz/quasiquotation.html