| tree | R Documentation |
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.
tree(path, max.level = 2, level = 0, prefix = "")
path |
The root path from which to start listing the directory structure. |
max.level |
The maximum depth of directories to list. |
level |
Internal parameter used for recursion, indicating the current level of depth. |
prefix |
Internal parameter used for formatting the printed tree structure. |
NULL, called for its side effect of printing the directory structure.
2024-2025 Tobias Schmidt: initial version.
metabodecon_dir <- system.file(package = "metabodecon")
tree(metabodecon_dir, max.level = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.