depth_first_rewrite_expr: Transform an expression.

Description Usage Arguments Value See Also

View source: R/depth-first-traversals.R

Description

Traverses the expression expr depth-first and transform it using callbacks.

Usage

1
2
depth_first_rewrite_expr(expr, callbacks, params = list(),
  topdown = list(), wflags = warning_flags(), ...)

Arguments

expr

An R expression

callbacks

List of callbacks to apply.

params

Parameters of the function we are rewriting. If we are working on a raw expression, just use the default, which is an empty list.

topdown

A list of additional information gathered in the traversal.

wflags

Warning flags, see warning_flags().

...

Additional data that will be passed along to callbacks.

Value

A modified expression.

See Also

rewrite_callbacks

identity_rewrite_callback

depth_first_rewrite_function


mailund/foolbox documentation built on Jan. 18, 2022, 10:46 a.m.