print_tree | R Documentation |
Recursively prints a tree-like structure of a list object with proper indentation to visualize its hierarchy. This function aims to mimic the output of 'lobstr::tree' with full values shown and colorized output for the list elements.
print_tree(x, indent = "", last = TRUE)
x |
A list object to be printed as a tree structure. |
indent |
A string used internally by the function to manage indentation. It is not intended to be set by the user. |
last |
A logical value used internally to indicate if the current element is the last in its sublist. It is not intended to be set by the user. |
config <- list(
run_behav = TRUE,
paths = list(
raw = list(
behav = "/path/to/behav",
eye = "/path/to/eye"
)
)
)
print_tree(config)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.