Based on tidyselect::vars_pull. Powers track selection in pull_track(). Catches and modifies errors from vars_pull to track-relevant info.

vars_track(
  x,
  track_id,
  track_type = c("seqs", "feats", "links"),
  ignore = NULL
)

Arguments

x

A gggenomes or gggenomes_layout object

track_id

a quoted or unquoted name or as positive/negative integer giving the position from the left/right.

track_type

restrict to these types of tracks - affects position-based selection

ignore

names of tracks to ignore when selecting by position.

Value

The selected track_id as an unnamed string