Learn R Programming

DSLite (version 1.4.0)

testParse: Parse an expression according to DataSHIELD syntax rules and returns an Abstract Syntaxic Tree (AST) node.

Description

Parse an expression according to DataSHIELD syntax rules and returns an Abstract Syntaxic Tree (AST) node.

Usage

testParse(expr, debug = FALSE)

Value

An Abstract Syntaxic Tree node

Arguments

expr

Expression

debug

Parser debug logger activated

Examples

Run this code
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))")
}

Run the code above in your browser using DataLab