Skip to contents

These functions manipulate databases using dot-separated paths, preserving nesting.

Usage

boilerplate_add_entry(db, path, value, auto_sort = TRUE)

boilerplate_update_entry(db, path, value, auto_sort = TRUE)

boilerplate_remove_entry(db, path, auto_sort = TRUE)

boilerplate_get_entry(db, path)

boilerplate_sort_db(db)

boilerplate_path_exists(db, path)

boilerplate_list_paths(db, prefix = "")

Arguments

db

List. The database to examine.

path

Character. Dot-separated path.

value

Any. The value to set.

auto_sort

Logical. Whether to auto-sort at each level. Default TRUE.

prefix

Character. Optional prefix for path construction.

Value

Modified database (list).

Modified database (list).

Modified database (list).

The value at the specified path.

The sorted database.

Logical. TRUE if the path exists, FALSE otherwise.

Character vector of all available paths.