R/testParse.R
testParse.Rd
Parse an expression according to DataSHIELD syntax rules and returns an Abstract Syntaxic Tree (AST) node.
testParse(expr, debug = FALSE)
Expression
Parser debug logger activated
An Abstract Syntaxic Tree node
if (FALSE) {
# a function call with a valid formula
ast <- testParse("someregression(D$height ~ D$diameter + D$length)")
# a function call with an invalid formula including a function call
testParse("someregression(D$height ~ D$diameter + poly(D$length,3,raw=TRUE))")
}