ast_: Display a call (or expression) as a tree.

Description Usage Arguments Examples

View source: R/ast.R

Description

ast_ takes a quoted expression; ast does the quoting for you.

Usage

1
2
3
ast_(x, width = getOption("width"))

ast(x)

Arguments

x

Quoted call, list of calls, or expression to display.

width

Display width, defaults to current width as reported by getOption("width").

Examples

1
2
3
4
5
6
7
8
ast(f(x, 1, g(), h(i())))
ast(if (TRUE) 3 else 4)
ast(function(a = 1, b = 2) {a + b + 10})
ast(f(x)(y)(z))

ast_(quote(f(x, 1, g(), h(i()))))
ast_(quote(if (TRUE) 3 else 4))
ast_(expression(1, 2, 3))

lazyeval documentation built on May 19, 2017, 2:50 p.m.

Search within the lazyeval package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.