Skip to contents

Lists cards that appear at neither end of any link, in the order of cards in the map. When the map has no links, every card is returned. Every card and link in the map counts: hidden cards, variants and the changes of add_steps() are ignored.

Usage

sm_orphans(map)

Arguments

map

A stage_map() widget.

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.

See also

Other trace: sm_missing(), sm_trace()

Examples

map <- stage_map(
  cards = data.frame(
    id = c("req-1", "req-2", "tst-1"),
    label = c("First", "Orphan", "Test"),
    stage = c("req", "req", "test"),
    lane = "core"
  )
) |>
  add_links(data.frame(from = "req-1", to = "tst-1"))
sm_orphans(map)
#>      id  label stage lane
#> 1 req-2 Orphan   req core