Prints the structure of a directory tree up to a specified maximum level of depth. It lists all files and directories under the specified path, displaying them in a tree-like structure.
Examples
metabodecon_dir <- system.file(package = "metabodecon")
tree(metabodecon_dir, max.level = 1)
#> /home/runner/work/_temp/Library/metabodecon
#> ├── DESCRIPTION
#> ├── INDEX
#> ├── Meta/
#> ├── NAMESPACE
#> ├── NEWS.md
#> ├── R/
#> ├── WORDLIST
#> ├── data/
#> ├── example_datasets/
#> ├── help/
#> └── html/