View source: R/widget-treeview.R
| tree_node | R Documentation |
Tree nodes
tree_node(label, ..., data = NULL, expanded = FALSE, id = NULL, loader = NULL)
label |
Text shown for the node. |
... |
Child nodes, or strings (leaf nodes). |
data |
Any R value attached to the node (e.g. a file path). |
expanded |
Start expanded? |
id |
Optional identifier (see |
loader |
Optional |
A TreeNode.
root <- tree_node("Project", tree_node("R", "app.R", "widget.R"), "README.md", expanded = TRUE)
root
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.