TimTeaFan / dplyover

Create columns by applying functions to vectors and/or columns in 'dplyr'.
https://timteafan.github.io/dplyover/
Other
61 stars 0 forks source link

Support dplyr backends #4

Open brshallo opened 3 years ago

brshallo commented 3 years ago

Would be very nice if dplyover "just worked" with dplyr backends.

E.g. dbplyr, dtplyr, multidplyr, etc.

TimTeaFan commented 3 years ago

It's a very nice idea to have support for dplyr's backends. I totally see adding this feature, but I guess it would require to first dive into the different backend ports to really understand how they work and then adding a new translating function for each {dplyover} function. I see this kind of feature in some future version down the road.

To pick this up I would need to look at:

dtplyr

https://github.com/tidyverse/dtplyr/blob/master/R/tidyeval-across.R

dbplyr / multidplyr

For {dbplyr} and {multidplyr }I haven't understood yet, where across is implemented.

brshallo commented 3 years ago

For {dbplyr} seems to be located in R/partial-eval.R

See: https://github.com/tidyverse/dbplyr/commit/84ecd65d04f9a72863831e559a1f9a56d6ecd186