Skip to contents

This helper walks a nested list and returns only those branches whose dot-notation paths match the user patterns. It understands * as a wildcard for one whole segment.

Usage

extract_selected_elements(db, select_paths, quiet = FALSE)

Arguments

db

A list. The database to extract from.

select_paths

A character vector of dot-notation paths (* allowed).

quiet

A logical. If FALSE, shows CLI alerts.

Value

A list containing only the matching branches.

A list containing only the matching branches.