testParse {DSLite}R Documentation

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)

Arguments

expr

Expression

debug

Parser debug logger activated

Value

An Abstract Syntaxic Tree node

Examples

## Not run: 
# 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))")

## End(Not run)

[Package DSLite version 1.4.0 Index]