Converts language object or lists of language objects to list of simple calls.
Usage
lang2calls(x)
Value
Given a call, an expression, a list of calls or a list of expressions, returns a list of calls.
Symbols and atomic vectors (which may get mixed up in a list) are returned wrapped in list.
# use non-exported function from teal.codelang2calls <- getFromNamespace("lang2calls", "teal.code")
expr <- expression(
i <- iris,
m <- mtcars
)
lang2calls(expr)