# The unary + operation can always be safely removed:
newSimplification(+a, TRUE, a)
# The unary - operation can be absorbed into numeric values:
newSimplification(-a, is.numeric(a), -a, do_eval = TRUE)
# Adding zero to anything can be skipped:
newSimplification(a + b, isZERO(b), a)
Run the code above in your browser using DataLab