Lists cards in stage with no direct link, in either direction, to any card in linked_to. Rows stay in the order
of cards in the map. When linked_to equals stage, a card linked to itself counts as linked. Every card and link
in the map counts: hidden cards, variants and the changes of add_steps() are ignored.
Arguments
- map
A
stage_map()widget.- stage
Stage id to inspect, as text (a factor counts as text) or a whole number (never
NA, never blank). A stage with no cards, from the map'sstagestable or the levels of a factor, is accepted and gives zero rows.- linked_to
Stage id to check links against, as text (a factor counts as text) or a whole number (never
NA, never blank). May equalstage. A stage with no cards is accepted: every card instageis then listed, and whenstagehas no cards either, the result has zero rows.- ...
Must stay empty. It makes every argument after it a named argument, and a typo in an argument's name an error that names it.
- kinds
Link kind ids to count, as text (a factor counts as text) or whole numbers (never
NA, never blank).NULL, the default, counts links of any kind.character(0)counts no links.
Value
A plain data frame with row names 1 to n and character columns id, label, stage and lane. With
no matches, the data frame has zero rows and the same column types. A wrong map stops with
stagemap_error_widget; an unknown stage or kind stops with stagemap_error_id.
See also
Other trace:
sm_orphans(),
sm_trace()
Examples
map <- stage_map(
cards = data.frame(
id = c("req-1", "req-2", "tst-1"),
label = c("First", "Missing test", "Test"),
stage = c("req", "req", "test"),
lane = "core"
)
) |>
add_links(data.frame(from = "req-1", to = "tst-1"))
sm_missing(map, "req", "test")
#> id label stage lane
#> 1 req-2 Missing test req core