Consider allowing f
in epi[x]_slide
to be an unnamed data masking expression yielding a tibble
#255
Labels
f
in epi[x]_slide
to be an unnamed data masking expression yielding a tibble
#255
This would improve compatibility with
dplyr
. However, it may introduce some ambiguities with the function&formulaf
case, and require some modifications to exactly how these cases are evaluated: if there is anf
but no...
, we can't immediately distinguish between functions, formulas and data masking expressions; e.g., just usingclass
won't work as it would force data masking expressions. Instead, we would need to (defuse and) evaluatef
itself using data masking, then check the result's class: functions and formulas would need to be (validated and) evaluated in the normal fashion, while tibbles would be unpacked into multiple columns as inmutate
andsummarize
. For consistency,f
may also need to be evaluated in this way even if args are provided in...
, but we should only allow args in...
if it's actually a function (or formula?).Generalizing
f
in this way may make it harder to validatef
, and may make it impossible to immediately validatef
without access to any data. Thus, whether or not to proceed may require some thought.The text was updated successfully, but these errors were encountered: