Change filter parameter default to TRUE
#2102
Replies: 5 comments
-
@pharmaverse/admiral I don't think this change is absolutely necessary, but if we were to implement, would we want to stay consistent with this swap and replace default values for arguments like |
Beta Was this translation helpful? Give feedback.
-
Hi @pharmaverse/admiral and @zdz2101 are moving forward with this update? need more discussion? or not going to be pursue this anymore? |
Beta Was this translation helpful? Give feedback.
-
I would not implement it now but investigate and discuss it in the clean-up meetings. We should be sure that it works for all cases and that the behaviour is consistent from the users point of view. I.e., we need to check all |
Beta Was this translation helpful? Give feedback.
-
My two cents: this functionality may be a “nice to have”, but I don’t think it’s necessary to devote lots of time to implementing it. I would propose closing this issue until we have a real need to do this. |
Beta Was this translation helpful? Give feedback.
-
I'm going to move to the Discussion Re-Work Part 3 Thread. |
Beta Was this translation helpful? Give feedback.
-
Proposed change of approach:
Currently, we use
NULL
as the default argument in our functions when we want to make filtering optional. This requires us to callfilter_if()
within our functions, which only filters the input dataset if the provided filter condition is notNULL
.However, if we set the default argument to
TRUE
, we would no longer require the use offilter_if()
and could instead just usefilter()
.These files use
filter_if()
and so would be updated if this change goes ahead:See original discussion in #1900 (comment)
Beta Was this translation helpful? Give feedback.
All reactions