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

View source: R/walkAST.R

walkASTR Documentation

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.

substitute

If TRUE, expr is substitute():ed.

Value

R expression.


globals documentation built on Nov. 22, 2022, 1:10 a.m.

Related to walkAST in globals...