Tidy Eval: Notes
Injection Operators Out Of Context
https://rlang.r-lib.org/reference/topic-inject-out-of-context.html
Or, “what happens when you go overboard”
Injection operators {{
, !!
, and !!!
are extensions of R syntax that only mean things
when evaluated in tidyverse context.
{{
getting evaluated outside of tidy-eval is relatively harmless (except that it
doesn’t do what you want)
!!
and !!!
are negation operators and sometimes will cast things to logical
if evaluated outside of tidyeval. It won’t tell you that it did that either, so…
should avoid? (n+1 reasons to just use data masking instead of injections…)