# This is useful to provide an alternative way of specifying
# arguments in DSLs:
fn <- function(...) ..1
f <- fn(arg := foo(bar) + baz)
is_formula(f)
f_lhs(f)
f_rhs(f)
# A predicate is provided to distinguish formulas from the
# colon-equals operator:
is_colon_equals(a := b)
is_colon_equals(a ~ b)
Run the code above in your browser using DataLab