moodymudskipper / flow

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

flow_view_source_calls() only looks at the top level #157

Open moodymudskipper opened 12 months ago

moodymudskipper commented 12 months ago

So below it will only detect the first call:

source("a.R")
if (TRUE) {
  source("b.R")
}

I was probably too lazy to implement the recursion for my use case at the time.

moodymudskipper commented 12 months ago

Also is considering 1st arg as the path, which is probably right 99.5 % oof the time but we should use match.call and consider path

pvictor commented 12 months ago

Indeed I have some suppressWarnings(source("a.R")) that are ignored.