ropensci / drake

An R-focused pipeline toolkit for reproducibility and high-performance computing
https://docs.ropensci.org/drake
GNU General Public License v3.0
1.34k stars 128 forks source link

drake::r_vis_drake_graph(targets_only = TRUE) gives bad layout #1356

Closed feinmann closed 3 years ago

feinmann commented 3 years ago

Hi there,

I am drawing my plan using drake::r_vis_drake_graph(targets_only = TRUE) which functions as expected without the parameter targets_only = TRUE, but as given, the result is poorly layouted, without space between the nodes.

image

Sorry, I cannot provide a reprex at the moment. So I am just wondering, am I missing an obvious setting, or is there a possibility to force a certain layout? Otherwise I suspect that I somehow screwed up my setup.

Thanks for any hints.

wlandau commented 3 years ago

Unfortunately, we have little control over the layout because it is managed internally by the visNetwork HTML widget. The visNetwork R package may allow you to adjust some things yourself using the output of r_vis_drake_graph(). There is also some discussion at https://github.com/ropensci/drake/issues/1303 about level separation, which you can now directly set in the graphing functions.