Resolves a call to the function that really runs (following S3 dispatch), walks its internal call tree, and reports how replayable the call would be as standalone code, together with a static security scan of the involved functions.
Value
An object of class insider_explain with components resolution
(the resolved function and method), tree (the static call tree),
status (replay feasibility), and audit (a data frame of risky calls
found by the static scan).
Examples
x <- c(1, 3, 5, 7, 100)
explain_call(stats::fivenum(x))
#>
#> ── insideR call explanation ────────────────────────────────────────────────────
#> Original call: `stats::fivenum(x)`
#> Executing function: `fivenum()` from stats
#>
#> ── Function path ──
#>
#> fivenum()
#> ── Replay status ──
#>
#> Full standalone replay looks possible.
#>
#> ── Security notes (static scan) ──
#>
#> No risky calls detected by the static scan.