shinyTree: jsTree + shiny

September 4, 2014

(This article was first published on Trestle Technology » R, and kindly contributed to R-bloggers)

We’re happy to announce the release of our latest R package, shinyTree. shinyTree is an integration of the jsTree library with the Shiny interactive web framework for R, which makes it simple for R developers to create web applications without knowing anything about HTML or JavaScript.

You can view a live demo of one application here.

shinyTree offers Shiny developers a way to create interactive trees that can be selected and interactively expanded/collapsed with convenient ways to access the user’s current selections and any other property about how the tree is currently presented. You can view more details or download the source code from the GitHub page; if you encounter any problems or feature requests, feel free to open a ticket there.

To get started with the package, you’ll need to installed it from GitHub, as it’s not yet available on CRAN. The easiest way to do this is using the devtools package which you should install if you haven’t already:


Now you’re ready to install shinyAce and load up one of the examples:

# Load shiny (I'm assuming it's already installed)

# Run one of the included examples in the shinyTree package.
runApp(system.file("examples/04-selected", package="shinyTree"))

We’re considering features like client-side drag-and-drop support within the trees as well as adding search capabilities to trees; let us know in the comments on or GitHub what you’d be most interested in using with your projects. We’re also interested in ways to make this package more performant.

To leave a comment for the author, please follow the link and comment on their blog: Trestle Technology » R. offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...

If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.


Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)