The algorithm is performing a depth first search where chunks are "nodes" and data objects are "verticies" connecting them.

dstrace_chunks(chunk_names, gcam_data_map, prev_trace_list = c())

Arguments

chunk_names

A list of chunks to find the precursors for.

gcam_data_map

A tibble of metadata information; normally a built-in package dataset.

prev_trace_list

The list of chunks already found.

Value

The unique list of chunk names which are precursors for chunk_names.