I have a problem with using shinyTree in flexdashboard. In a regular shiny app works well:
library(shiny)
library(shinyTree)
server <- function(input, output) {
output$tree <- renderTree({
opciones = list('All'= list(
'Human' = structure(list('OP1'='OP1', 'OP2'='OP2'),stopened=TRUE),
'Mouse' = structure(list('OP3'='OP3'), stopened=TRUE)))
attr(opciones[[1]],"stopened")=TRUE
opciones
})
}
ui <- fluidPage(
shinyTree("tree", checkbox = "TRUE")
)
shinyApp(ui = ui, server = server)
However, when I use it in Flexdashboard, it returns an empty tab (see this file: https://mega.nz/file/DCozwIiJ#ttcBe581FPfhINVoczfBvaXhgRlXwVSu-wd2JhXTEEY)
Do you have any idea why this could be happening and how to create a js tree checkbox in flexdashboard?