These predicates test for quosure objects.
is_quosure() tests for a tidyeval quosure. These are one-sided
formulas with a
is_quosureish() tests for general R quosure objects: quosures,
or one-sided formulas.
is_quosure(x) is_quosureish(x, scoped = NULL)
An object to test.
A boolean indicating whether the quosure or formula
is scoped, that is, has a valid environment attribute. If
# Quosures are created with quo(): quo(foo)#> <quosure: local> #> ~foois_quosure(quo(foo))#>  TRUE# Formulas look similar to quosures but are not quosures: is_quosure(~foo)#>  FALSE# But they are quosureish: is_quosureish(~foo)#>  TRUE# Note that two-sided formulas are never quosureish: is_quosureish(a ~ b)#>  FALSE