Simplify(expr, env = parent.frame())
as.expression(x+x)
"x+x"
function(x) x+x
~x+x
expr
is a function. This argument is ignored is all other cases.expr
except for formula, where a language is returned.simplifications
containing simplification rules, is exported in the user namespace.