{"id":13735238,"url":"https://github.com/shinyTree/shinyTree","last_synced_at":"2025-05-08T11:32:47.039Z","repository":{"id":19326670,"uuid":"22565116","full_name":"shinyTree/shinyTree","owner":"shinyTree","description":"Shiny integration with the jsTree library","archived":false,"fork":false,"pushed_at":"2024-09-23T16:41:54.000Z","size":988,"stargazers_count":147,"open_issues_count":34,"forks_count":63,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-04-19T17:54:04.054Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shinyTree.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-08-03T02:44:13.000Z","updated_at":"2025-03-15T21:47:50.000Z","dependencies_parsed_at":"2023-07-12T14:49:59.745Z","dependency_job_id":"e454ec3f-263e-44a8-8dae-f162f7a6c9c9","html_url":"https://github.com/shinyTree/shinyTree","commit_stats":{"total_commits":146,"total_committers":16,"mean_commits":9.125,"dds":0.7191780821917808,"last_synced_commit":"110b49970d117d0638746d47b074e955287abed0"},"previous_names":["trestletech/shinytree"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinyTree%2FshinyTree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinyTree%2FshinyTree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinyTree%2FshinyTree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinyTree%2FshinyTree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shinyTree","download_url":"https://codeload.github.com/shinyTree/shinyTree/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253059268,"owners_count":21847246,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T03:01:04.579Z","updated_at":"2025-05-08T11:32:46.506Z","avatar_url":"https://github.com/shinyTree.png","language":"JavaScript","funding_links":[],"categories":["Tools","JavaScript","Visualization"],"sub_categories":["Packages","Tree and Hierarchical Data"],"readme":"[![cran checks](https://badges.cranchecks.info/worst/shinyTree.svg)](https://cran.r-project.org/web/checks/check_results_shinyTree.html)\n[![CRAN RStudio mirror downloads](https://cranlogs.r-pkg.org/badges/shinyTree?color=brightgreen)](https://www.r-pkg.org/pkg/shinyTree)\n[![CRAN Downloads](http://cranlogs.r-pkg.org/badges/grand-total/shinyTree)](https://www.rpackages.io/package/shinyTree)\n[![codecov](https://app.codecov.io/gh/shinyTree/shinyTree/branch/master/graph/badge.svg)](https://app.codecov.io/gh/shinyTree/shinyTree)\n\nshinyTree\n==========\n\nThe `shinyTree` package enables Shiny application developers to use the \n[jsTree](http://jstree.com) library in their applications.\n\n![shiny tree screenshot](https://shinyTree.github.io/shinyTree/images/st.png)\n\nInstallation\n------------\n\nYou can install the latest development version of the code using the devtools R package.\n\n```\n# Install devtools, if you haven't already.\ninstall.packages(\"devtools\")\n\nlibrary(devtools)\ninstall_github(\"shinyTree/shinyTree\")\n```\n\n\nGetting Started\n---------------\n\n#### 01-simple ([Live Demo](https://trestletech.shinyapps.io/st-01-simple/))\n\n```\nlibrary(shiny)\nrunApp(system.file(\"examples/01-simple\", package = \"shinyTree\"))\n```\n\nA simple example to demonstrate the usage of the shinyTree package.\n\n#### 02-attributes ([Live Demo](https://trestletech.shinyapps.io/st-02-attributes/))\n\n```\nlibrary(shiny)\nrunApp(system.file(\"examples/02-attributes\", package = \"shinyTree\"))\n```\n\nManage properties of your tree by adding attributes to your list when rendering.\n\n#### 03-checkbox ([Live Demo](https://trestletech.shinyapps.io/st-03-checkbox/))\n\n```\nlibrary(shiny)\nrunApp(system.file(\"examples/03-checkbox\", package = \"shinyTree\"))\n```\n\nUse checkboxes to allow users to more easily manage which nodes are selected.\n\n#### 04-selected ([Live Demo](https://shinyTree.shinyapps.io/st-04-selected/))\n\n```\nlibrary(shiny)\nrunApp(system.file(\"examples/04-selected\", package = \"shinyTree\"))\n```\n\nAn example demonstrating how to set an `input` to the value of the currently selected node in the tree.\n\n#### 05-structure ([Live Demo](https://trestletech.shinyapps.io/st-05-structure/))\n\n```\nlibrary(shiny)\nrunApp(system.file(\"examples/05-structure\", package = \"shinyTree\"))\n```\n\nDemonstrates the low-level usage of a shinyTree as an input in which all attributes describing the state of the tree can be read.\n\n\n#### 06-search ([Live Demo](https://trestletech.shinyapps.io/st-06-search/))\n\n```\nlibrary(shiny)\nrunApp(system.file(\"examples/06-search\", package = \"shinyTree\"))\n```\n\nAn example showing the use of the search plugin to allow users to more easily navigate the nodes in your tree.\n\n#### 07-drag-and-drop ([Live Demo](https://trestletech.shinyapps.io/st-07-drag-and-drop/))\n\n```\nlibrary(shiny)\nrunApp(system.file(\"examples/07-drag-and-drop\", package = \"shinyTree\"))\n```\n\nAn example demonstrating the use of the drag-and-drop feature which allows the user to reorder the nodes in the tree.\n\n#### 08-class ([Live Demo](https://trestletech.shinyapps.io/st-08-class/))\n\n```\nlibrary(shiny)\nrunApp(system.file(\"examples/08-class\", package = \"shinyTree\"))\n```\n\nAn example demonstrating the use of the ability to style nodes using custom classes.\n\n#### 09-themes\n\n```\nlibrary(shiny)\nrunApp(system.file(\"examples/09-themes\", package = \"shinyTree\"))\n```\n\nAn example demonstrating the use of built-in tree themes.\n\n#### 10-node-ids\n\n```\nlibrary(shiny)\nrunApp(system.file(\"examples/10-node-ids\", package = \"shinyTree\"))\n```\n\nAn example demonstrating the ability to label and return node identifiers and classes.\n\n#### 11-tree-update\n\n```\nlibrary(shiny)\nrunApp(system.file(\"examples/11-tree-update\", package = \"shinyTree\"))\n```\n\nAn example demonstrating the ability to update a tree with a new tree model.  This was broken in the original version as the tree was destroyed upon initialization.\n\n#### 12-types\n\n```\nlibrary(shiny)\nrunApp(system.file(\"examples/12-types\", package = \"shinyTree\"))\n```\n\nAn example demonstrating node types with custom icons.\n\n#### 13-icons\n\n```\nlibrary(shiny)\nrunApp(system.file(\"examples/13-icons\", package = \"shinyTree\"))\n```\n\nAn example demonstrating various ways to use icons on nodes.\n\n#### 14-files\n\n```\nlibrary(shiny)\nrunApp(system.file(\"examples/14-files\", package = \"shinyTree\"))\n```\n\nDemonstrates how to create a file browser tree.\n\n#### 15-files\n\n```\nlibrary(shiny)\nrunApp(system.file(\"examples/15-data\", package = \"shinyTree\"))\n```\n\nDemonstrates how to attach and retreive metadata from a node.\n\n#### 16-async\n\n```\nlibrary(shiny)\nrunApp(system.file(\"examples/16-async\", package = \"shinyTree\"))\n```\n\nDemonstrates how to render a tree asynchronously.\n\n#### 17-contextmenu\n\n```\nlibrary(shiny)\nrunApp(system.file(\"examples/17-contextmenu\", package = \"shinyTree\"))\n```\n\nDemonstrates how to enable the contextmenu.\n\n#### 18-modules\n\n```\nlibrary(shiny)\nrunApp(system.file(\"examples/18-modules/app.R\", package=\"shinyTree\"))\nrunApp(system.file(\"examples/18-modules/app_types.R\", package=\"shinyTree\"))\n```\n\nDemonstrates how to use shinyTree with shiny modules.\n\n#### 19-data.tree\n```\nlibrary(shiny)\nrunApp(system.file(\"examples/19-data.tree\", package = \"shinyTree\"))\n```\n\nDemonstrates how to pass a data.tree to shinyTree.\n\n#### 20-api\n\n```\nlibrary(shiny)\nrunApp(system.file(\"examples/20-api\", package = \"shinyTree\"))\n```\n\nAn example demonstrating how to extend the operations on the tree to the rest of\nthe [jsTree's core functionality](https://www.jstree.com/api/).\n\n#### 21-options\n\n```\nlibrary(shiny)\nrunApp(system.file(\"examples/21-options/app_setState_refresh.R\", package=\"shinyTree\"))\n```\n\nDemonstrates how to fine-tune shinyTree's behaviour with options. Specifically:\nWhen internal `jstree` code calls `set_state` or `refresh`, a callback is made so that the shiny\nserver is notified and `observe` and `observeEvents` for the tree are fired.\nThis can be useful if the developer would like `observe` and `observeEvents` to run after\nusing `updateTree`. (By default, `updateTree` does not run `observe` or `observeEvent` because it\nis assumed that the shiny application knows that the tree is being changed already.)\n\n#### 23-file-icons\n\n```\nlibrary(shiny)\nlibrary(shinyTree)\nrunApp(system.file(\"examples/23-file-icons\", package = \"shinyTree\"))\n```\n\nAn example demonstrating how to create a file tree with individual icons.\n\n\nKnown Bugs\n----------\n\nSee the [Issues page](https://github.com/shinyTree/shinyTree/issues) for information on outstanding issues. \n\nLicense\n-------\n\nThe development of this project was generously sponsored by the [Institut de \nand performed by [Jeff Allen](https://trestletech.com). The code is\nlicensed under The MIT License (MIT).\n\nCopyright (c) 2014 Institut de Radioprotection et de Sûreté Nucléaire\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FshinyTree%2FshinyTree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FshinyTree%2FshinyTree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FshinyTree%2FshinyTree/lists"}