https://github.com/stefanieschneider/shinytree
Create tree widgets in R using the JavaScript library jsTree
https://github.com/stefanieschneider/shinytree
bootstrap jstree r shiny
Last synced: about 2 months ago
JSON representation
Create tree widgets in R using the JavaScript library jsTree
- Host: GitHub
- URL: https://github.com/stefanieschneider/shinytree
- Owner: stefanieschneider
- License: gpl-3.0
- Created: 2019-11-08T10:01:38.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-26T12:12:20.000Z (about 6 years ago)
- Last Synced: 2025-08-12T15:40:49.210Z (11 months ago)
- Topics: bootstrap, jstree, r, shiny
- Language: R
- Size: 15.1 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
---
output: github_document
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
options(width = "100")
```
# shinytree 
[](https://www.tidyverse.org/lifecycle/#experimental)
[](https://travis-ci.org/stefanieschneider/shinytree)
[](https://ci.appveyor.com/project/stefanieschneider/shinytree)
## Overview
This R package creates tree widgets using the JavaScript library [jsTree](https://github.com/vakata/jstree), e.g., in Shiny. The [jsTree](https://github.com/vakata/jstree) library has been included. shinytree is built on top of [Bootstrap](https://getbootstrap.com/) and supports [jQuery.NiceScroll](https://github.com/inuyaksa/jquery.nicescroll). Please be aware that this R package is a more lightweight alternative to [shinyTree](https://github.com/shinyTree/shinyTree) and thus does not implement methods to create or convert trees or tree-like structures.
If `search` is added as a plugin, two additional functions are automatically activated: one button to select search results; another one to reset the tree, i.e., collapse all opened leaves and remove a currently active search.
## Installation
You can install the development version of shinytree from [GitHub](https://github.com/stefanieschneider/shinytree):
``` r
# install.packages("devtools")
devtools::install_github("stefanieschneider/shinytree")
```
## Usage
```{r example, code = readLines("inst/examples/tree.R")}
```
## Contributing
Please report issues, feature requests, and questions to the [GitHub issue tracker](https://github.com/stefanieschneider/shinytree/issues). We have a [Contributor Code of Conduct](https://github.com/stefanieschneider/shinytree/blob/master/CODE_OF_CONDUCT.md). By participating in shinytree you agree to abide by its terms.