Explore Nested Functions

knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

Many times a function will contain another function definition, these will not always be very readable in the body of the main function. {flow} offers a way to visualize those.

When using flow on the main function, a message will signify what nested functions can be viewed. The base function bquote is a good example.

library(flow)
flow_view(bquote)

We can then inspect those by using the nested_fun argument, with a numeric id or a name (if unambiguous)

flow_view(bquote, nested_fun = "unquote")

flow_view(bquote, nested_fun = 3)



Try the flow package in your browser

Any scripts or data that you put into this service are public.

flow documentation built on June 7, 2023, 5:17 p.m.