Map srcrefs over an iterable object, Filtering non-srcref results
Source: R/srcrefs.R
flat_map_srcrefs.RdMap srcrefs over an iterable object, Filtering non-srcref results
Usage
flat_map_srcrefs(xs, ns = NULL, breadcrumbs = character())Arguments
- xs
Any iterable object
- ns
A
characternamespace name to attribute to objects inxs. Ifxsobjects themselves have namespaces attributed already to them, the namespace will not be replaced.Recursive methods are expected to propegate a vector of "breadcrumbs" (a character vector of namespace names encountered while traversing the namespace used as a memory of what we've seen already), which is used for short-circuiting recursive environment traversal.