showTree: Print Lisp-Style Representation of R Expression

Description Usage Arguments Author(s) Examples

View source: R/codetools.R

Description

Prints a Lisp-style representation of R expression. This can be useful for understanding how some things are parsed.

Usage

1

Arguments

e

R expression.

write

function of one argument to write the result.

Author(s)

Luke Tierney

Examples

1
2
3
showTree(quote(-3))
showTree(quote("x"<-1))
showTree(quote("f"(x)))

Example output

(- 3)
(<- "x" 1)
(f x)

codetools documentation built on Nov. 8, 2020, 4:31 p.m.