Questions tagged [shinytree]

jsTree Bindings for Shiny

Exposes bindings to jsTree (a JavaScript library that supports interactive trees) to enable a rich, editable trees in Shiny.

30 questions
1
vote
0 answers

Restriction on checkbox only selecting the parent node and not sub nodes, just like simple select of shinyTree node in R

I am using shinyTree package and its checkbox option. library(shiny) library(shinyTree) server <- shinyServer(function(input, output, session) { # Defining lists inside list and rendering it in the shinyTree output$tree <-…
1
vote
1 answer

How to restrict a single selection of checkbox in shinyTree R

I am using shinyTree package and its checkbox option. library(shiny) library(shinyTree) server <- shinyServer(function(input, output, session) { # Defining lists inside list and rendering it in the shinyTree output$tree <-…
1
vote
1 answer

shinyTree not rendering checkbox output

I am using shinyTree to render a data table. The following is the dataset with codes used so far: library(shiny) library(shinyTree) newdat <- structure(list(RESPID = c("41000123", "41004132", "41006132", "41007121", "41007123"), PDT_A = c(125,…
Apricot
  • 2,925
  • 5
  • 42
  • 88
1
vote
1 answer

Efficiently turn a file directory into a list in R, possibly with Rcpp

I currently started using shinyTree for one of my applications and I'm having trouble finding an efficient way in which to turn my directory into a list. My assumption is that the easiest way is to use something like Rcpp to take advantage of C++'s…
tblznbits
  • 6,602
  • 6
  • 36
  • 66
0
votes
1 answer

How to build a Shiny pickerInput with unclickable subtitles that group options together

I have a simple Shiny app that includes a pickerInput with 8 options. Some of the options belong to the same group in that they are similar. Therefore, I would like to include a header above a group of options, without the header being an option…
0
votes
1 answer

How to copy specified items rather than moving when using drag and drop in the shinyTree package?

I am trying out the shinyTree package to see if it works for my hierarchy tree needs, per post How to build a drag and drop hierarchical tree with user inputs using shinyTree, jsTreeR, or similar package?. In the following reproducible code, the…
0
votes
1 answer

Can I force a shinyTree to be loaded when the app is started?

Summary: When I put a shinyTree (from the R package of the same name) in a dropdownButton (from the shinyWidgets package), it seems that the tree in question is not accessible from the input variable until the user has interacted with the tree in…
Yiab
  • 21
  • 1
0
votes
1 answer

In R/Shiny, is there a way to create a progress bar for renderTree

I am using the shinyTree package for an R/Shiny app, and I am rendering some fairly large trees. I don't know why it takes so long, but it is taking several minutes to render the tree. Is there any way to get a progress bar for renderTree, so that…
Daryl McCullough
  • 303
  • 5
  • 20
0
votes
1 answer

shinyTree - run function once tree is expanded

Let's assume I have a minimum working example like library(shiny) library(shinyTree) ui <- fluidPage( shinyTree("tree", contextmenu = TRUE, search = TRUE, unique = TRUE, sort = TRUE) ) server <- function(input, output, session) { …
wa4557
  • 953
  • 3
  • 13
  • 25
0
votes
1 answer

ShinyTree in ShinyDashboard sidebar

I have a nice dynamically produced shinyTree that displays beautifully in the main body of a shinydashboard. Which is wonderful. However, what I actually want is for it to be in the sidebar so it can be used to select a tab. But no matter what I…
vorpal
  • 268
  • 4
  • 17
0
votes
1 answer

shinyTree Checkboxes using Dates

I'm trying to create a branching checkbox input using dates similar to the picture below. The final selections will be unique observations from the prior selected Name. Each Name could have many observations so I'd like to be able to use dates to…
vb66
  • 353
  • 3
  • 14
0
votes
1 answer

Show/hide shinyTree nodes based on input values and maintain tree state

I would like to filter nodes in a shinyTree based on input values supplied by the user. I have an initial attempt, but the issue is the tree does not maintain state after input, such as open/closed nodes, or selected nodes. For example, in my sample…
Ben Carlson
  • 1,053
  • 2
  • 10
  • 18
0
votes
1 answer

R Shiny - clicking shinyTree expanding icon close parent dropdown modal

I am using library shinyTree and shinyWidgets. The problem is that if I put the hierarchical checkbox on the dropdown modal, the double clicking of the tree expanding icon (see the red circle in the following figure) will close the parent dropdown…
Liang
  • 403
  • 1
  • 5
  • 14
0
votes
1 answer

hide and show widget in R Shiny

I am trying to hide and show button based on folder selection.Scenario is if the user selects the folder then Button is shown or else button should be hidden. I and trying to achieve the same using shinyjs package. Here is the piece of code which I…
string
  • 787
  • 10
  • 39
0
votes
1 answer

conditionalPanel based on ShinyTree selected value

As I have complained various times on this site (shinyTree: set variable to value if checkbox is checked, shinyTree: view without selecting), there is a serious lack of documentation on shinyTree. Consider the following code in…
Clarinetist
  • 1,097
  • 18
  • 46
1
2