moodymudskipper / flow

View and Browse Code Using Flow Diagrams
https://moodymudskipper.github.io/flow/
Other
395 stars 26 forks source link

Default values in the formals of a function are not recognized as dependency #107

Closed krlmlr closed 2 years ago

krlmlr commented 2 years ago

Reprex without output (see also #105):

a <- function(x = b()) {}
b <- function() {}

flow::flow_view_deps(a)

a <- function() {
  b()
}

flow::flow_view_deps(a)

Created on 2022-04-07 by the reprex package (v2.0.1)

moodymudskipper commented 2 years ago

Thanks, I think they should be shown by default (safer to see too many deps than too few), and hidden optionally.

github-actions[bot] commented 1 year ago

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary.