Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

walkAST

Walk the Abstract Syntax Tree (AST) of an R Expression


Description

Walk the Abstract Syntax Tree (AST) of an R Expression

Usage

walkAST(
  expr,
  atomic = NULL,
  name = NULL,
  call = NULL,
  pairlist = NULL,
  substitute = FALSE
)

Arguments

expr

R expression.

atomic, name, call, pairlist

single-argument function that takes an atomic, name, call and pairlist expression, respectively. Have to return a valid R expression.

name

single-argument function that takes a name expression.

call

single-argument function that takes a call expression.

pairlist

single-argument function that takes a pairlist expression.

substitute

If TRUE, expr is substitute():ed.

Value


globals

Identify Global Objects in R Expressions

v0.14.0
LGPL (>= 2.1)
Authors
Henrik Bengtsson [aut, cre, cph], Davis Vaughan [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.