-
Notifications
You must be signed in to change notification settings - Fork 18
feat: add pull method, alongside tests and updated documentation #113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
looks good, although tbh overscope and tidyeval are a bit like black magic to me ^^. But parsing through this helps me understand it better. I think it's appropriate to be able to select any columns, regardless of whether it's a core or metadata column. I've found the tiniest typo in the Let's see what @mikelove thinks. He had mentioned the idea of relying on |
No, I agree with you that we should avoid a dependency. This looks great! |
|
This does make one other big change where I moved dplyr to Depends in the DESCRIPTION file, to follow along from @jonocarroll approach in DFplyr. This means plyranges no longer reexports any of these tidyverse functions, so you can use |
|
So does this resolve the namespace conflicts then?
which are you thinking about here? |
|
Yes I think this does resolve the conflict issue, except in the case of between, n and n_distinct as they aren't generics. any package that invokes one of the core dplyr verbs using |
|
Ok that's fine with me. I can go update nullranges |
|
Just for clarity on the DFplyr approach; I explicitly import only the necessary generics from |
I only import the generics I need as well but to clarify for my understanding - doesn't putting a package in Depends import and attach all of that package on load? I have seen some of the other tidyverse packages do some onLoad trickery but that also seems hacky. Regardless my initial approach of re-exporting was pretty clunky and this works for new. |
| exportClasses(FileOperator) | ||
| exportClasses(GroupedGenomicRanges) | ||
| exportClasses(GroupedIntegerRanges) | ||
| import(dplyr) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have this line in DFplyr; I am a little fuzzy on exactly how DESCRIPTION Depends translates to NAMESPACE, but I don't think it necessarily does at all.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm that shouldn't be there, I can't remember adding an # @import dplyr tag in in the documentation but sure enough it is there. I will make a hotfix. Thanks for noticing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line 36 in ef55306
| #' @import dplyr |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like it came in with grouped speed-up but agree we want to be selective.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
my bad, that was me. What's the best approach in general, using importFrom so that you only import the functions you need? Or using the <package>:: prefix?
Adding pull method based on request on zulip: #tidiness_in_bioc > `pull` method
Currently default behaviour is to allow selection of all parts of a ranges like start, end etc. Happy to discuss whether that is appropriate or not.