get_selected: Get the selected nodes from a tree

Description Usage Arguments


Extract the nodes from the tree that are selected in a more convenient format. You can choose which format you prefer.


get_selected(tree, format = c("names", "slices"))



The input$tree shinyTree you want to inspect.


In which format you want the output. Use names to get a simple list of the names (with attributes describing the node's ancestry), or slices to get a list of lists, each of which is a slice of the list used to get down to the selected node.

Search within the shinyTree package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.