Open jonocarroll opened 4 years ago
I’ll take a look on my end
Progress... https://github.com/jonocarroll/DFplyr/tree/bplyr_integration
The README renders in the current form (including S4 columns). I haven't finished, but I found a lot of edge cases and have dealt with them.
Looks better! A few q’s (probably me not grokking)
You are importing dplyr?
Aren’t the Fn names causing ns conflicts?
If you are using base underneath why would the user want to install dplyr?
I only import the generics - without those there's no dispatch. You reclassed everything and wrote new generics but this is 'supposed' to be the way to extend a generic - write the method for a new class. Plus this way mutate
works whether you pass it a data.frame
or a DataFrame
. My original idea was to use the tbl
methods under the hood but there are glaring issues with that.
I could write new generics but that breaks dplyr
if it's also attached.
Ok. The original noplyr was like that but still caused tons of ns problems. I’ll look more closely at how you did it to figure out what i did wrong there. Cheers ;)
https://github.com/yonicd/bplyr
Appears to work for
mutate
andfilter
, even processing an S4 columnCreated on 2020-01-29 by the reprex package (v0.3.0)
(with dispatch, of course).
It doesn't seem to work to call the
b_mutate
methods internally, but maybe I'm doing something wrong. Collaboration, @yonicd?