Find all the leaf tags in a potentially nested list. The generic form of a list is tag = value; find all the tags in a list.

leaf_tags(x, omit_sections = FALSE)

Arguments

x

List to be searched.

omit_sections

Logical indicating if sections should be omitted from vector names.

Value

Characted vector of tags.

Examples

l <- list("a" = 1, "b" = list("c" = 3, "d" = 4), "e" = 5) leaf_tags(l)
#> a b.c b.d e #> 1 3 4 5