Skip to contents

Finds direct or transitive callers of a node, highlights exported APIs reached through those callers, and reports static risk signals that should shape the validation plan.

Usage

change_impact(graph, name, transitive = TRUE)

Arguments

graph

An insider_graph object, a source directory, or an installed package name.

name

Exact node name to look up.

transitive

If TRUE, recursively walk callers to find all upstream callers in the graph. If FALSE, report only direct callers.

Value

An insider_change_impact object.

Examples

dir <- tempfile()
dir.create(dir)
writeLines("a <- function() b()\nb <- function() c()\nc <- function() 1", file.path(dir, "code.R"))
g <- build_graph(dir, cache = FALSE)
change_impact(g, "c")
#> 
#> ── c ───────────────────────────────────────────────────────────────────────────
#> Kind: function | export status unknown | Risk: medium
#> Callers
#> Exported: none
#> Internal: a, b
#> Total distinct callers: 2
#> Method family
#> not identified as an S3 method
#> Related tests
#> none
#> Risk notes
#> • none identified
#> Validation commands
#> • R CMD check