When piping into a function that does not take the object as the first argument, %>% will force the object into the next available argument. This can be problematic in cases where only some attributes from the object are required. If this is indeed intended behaviour, perhaps it would be helpful to throw a warning message if the piped object replaces e.g. a default argument?
When piping into a function that does not take the object as the first argument,
%>%
will force the object into the next available argument. This can be problematic in cases where only some attributes from the object are required. If this is indeed intended behaviour, perhaps it would be helpful to throw a warning message if the piped object replaces e.g. a default argument?In the above case,
default_arg1
is replaced by.
(the piped object)