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

showTree(e, write = cat)

Arguments

e

R expression.

write

function of one argument to write the result.

Author

Luke Tierney

Examples

showTree(quote(-3))
#> (- 3)
showTree(quote("x"<-1))
#> (<- "x" 1)
showTree(quote("f"(x)))
#> (f x)