rushgeo
rushgeo

Reputation: 103

Exclude functions imported from packages from drake graph visualization?

I'd like to exclude nodes representing functions imported from external packages (e.g. stringr::str_sub) from the graph visualization of my Drake plan, but keep the nodes for functions that come from scripts I've sourced into the environment. How would I do that?

I'm only wanting to change the way the graph is displayed visually, since that will help me explain the workflow to other users. I don't want to impact how the plan is executed.

Upvotes: 1

Views: 57

Answers (1)

landau
landau

Reputation: 5841

https://ropenscilabs.github.io/drake-manual/vis.html#subgraphs has some examples. The visualization functions have arguments targets_only, from, mode, order, and subset to let you omit certain nodes. Does that help?

Upvotes: 1

Related Questions