简体   繁体   English

从德雷克图形可视化中排除从包中导入的函数?

[英]Exclude functions imported from packages from drake graph visualization?

I'd like to exclude nodes representing functions imported from external packages (eg 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.我想从我的 Drake 计划的图形可视化中排除代表从外部包(例如stringr::str_sub )导入的函数的节点,但保留来自我已采购到环境中的脚本的函数的节点。 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.我不想影响计划的执行方式。

https://ropenscilabs.github.io/drake-manual/vis.html#subgraphs has some examples. https://ropenscilabs.github.io/drake-manual/vis.html#subgraphs有一些例子。 The visualization functions have arguments targets_only , from , mode , order , and subset to let you omit certain nodes.可视化功能纷纷议论targets_onlyfrommodeordersubset让你忽略某些节点。 Does that help?这有帮助吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM