showTree: Print Lisp-Style Representation of R Expression

View source: R/codetools.R

showTreeR Documentation

Print Lisp-Style Representation of R Expression

Description

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

Usage

showTree(e, write = cat)

Arguments

e

R expression.

write

function of one argument to write the result.

Author(s)

Luke Tierney

Examples

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

codetools documentation built on Feb. 16, 2023, 5:44 p.m.