Skip to contents

Creates a new Graph which is afterwards accessible via .current_descriptor(). The graph is automatically removed when exiting the current scope. After the graph is either cleaned up automatically (by exiting the scope) or finalized, the previously built graph is restored, i.e., accessible via .current_descriptor().

Usage

local_descriptor(..., envir = parent.frame())

Arguments

...

(any)
Additional arguments to pass to the GraphDescriptor constructor.

envir

(environment)
Environment where exit handler will be registered for cleaning up the Graph if it was not returned yet.

Value

A Graph object.