lang2calls {teal.code} | R Documentation |
Separate calls
Description
Converts language object or lists of language objects to list of simple calls.
Usage
lang2calls(x)
Arguments
x |
|
Value
Given a call
, an expression
, a list of call
s or a list of expression
s, returns a list of calls
.
Symbols and atomic vectors (which may get mixed up in a list) are returned wrapped in list.
Examples
# use non-exported function from teal.code
lang2calls <- getFromNamespace("lang2calls", "teal.code")
expr <- expression(
i <- iris,
m <- mtcars
)
lang2calls(expr)
[Package teal.code version 0.6.1 Index]