depth_first_rewrite_function: Transform the body of function.

Description Usage Arguments Value See Also

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

Description

Traverses the body of fn and rewrite it based on callbacks.

Usage

1
2
depth_first_rewrite_function(fn, callbacks, topdown = list(),
  wflags = warning_flags(), ...)

Arguments

fn

A (closure) function.

callbacks

List of callbacks to apply.

topdown

A list of additional information that will be considered top-down in the traversal.

wflags

Warning flags, see warning_flags().

...

Additional data that will be passed along to callbacks.

Value

A new function similar to fn but with a transformed body.

See Also

depth_first_rewrite_expr

rewrite_callbacks


foolbox documentation built on May 1, 2019, 8:44 p.m.