flow icon indicating copy to clipboard operation
flow copied to clipboard

flow_view_source_calls() only looks at the top level

Open moodymudskipper opened this issue 2 years ago • 2 comments

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 avatar Jul 05 '23 08:07 moodymudskipper

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

moodymudskipper avatar Jul 05 '23 08:07 moodymudskipper

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

pvictor avatar Jul 06 '23 13:07 pvictor