Skip to contents

This function can be used in functions that operate on imported files with bookmarks. It takes two arguments: x, the object with parsed files, and a list called dependencies with two elements: the id and key that hold the dependencies of a given file. This function requires the data.tree package to be installed.

Usage

build_trees_from_bookmarks(
  x,
  dependencies = list(id = "metadata", key = "dependency")
)

Arguments

x

The object with parsed files as resulting from a call to select_chapters() or parse_bookmarks().

dependencies

A list with two elements names id and key, specifying where to find the dependencies of each file.

Value

A data.tree object.