Parse an R expression to a nested list:

expression2list(expr, generateRuleset = TRUE)

Arguments

expr

An R expression string such as "a == 3 && !(b > 0)".

generateRuleset

Logical: If TRUE output the expressions as rules, which are lists of condition and rules.