This is an experimental feature that traces variable lineage through an injection of a ".uuid" attribute for each variable. Previous attempts at variable lineage were conducted using variable names and heuristics of known functions. This approach yields a more consistent lineage.
A folder containing blueprint scripts
Should this function recursively load blueprints?
Where the targets/drake project script file is located. Defaults to using targets.
An igraph object. This defaults to a graph loaded with load_variable_lineage. However, use this if you want to inspect subgraphs of the variable lineage.
Character vector of patterns for variable names to
match. Note that each pattern is assumed to be disjoint (e.g. "if variable pattern
A or variable pattern B"), but if tables
is not NULL
, the search will be joint
(e.g. "if (variable pattern A or variable pattern B) and (table pattern A or
table pattern B)").
Character vector of patterns for table names to match. Note that
each pattern is assumed to be disjoint (e.g. "if table pattern A or table pattern B"),
but if variables
is not NULL
, the search will be joint (e.g. "if (table pattern A
or table pattern B) and (variable pattern A or variable pattern B)").
Which sort of relationships to include. Defaults to "all" (includes both relations to the target node in the graph and from the target node in the graph). See igraph::all_simple_paths() for more details.
The number of node steps to consider in the graph traversal for filtering. Defaults to -1 (no limit on steps). See igraph::all_simple_paths() for more details.
Arguments passed to load_variable_lineage
If TRUE
, variable nodes will be clustered into their
respective dataset
To enable the variable feature, set options(blueprintr.use_variable_uuids = TRUE)
.
load_variable_lineage()
: Reads blueprintrs from folder to get variable lineage.
Returns an igraph of the variable lineage.
filter_variable_lineage()
: Filter for specific variables to include
in the lineage graph
vis_variable_lineage()
: Visualizes variable lineage with visNetwork.
Returns an interactive graph.