Hi guys,
I am facing a similar problem as the one mentioned here, but I didn't find the solution there.
I have gone through a couple of posts in the community (this is one), but didn't find what I was looking for.
So the problem is, I'm trying to render the esquisseUI from the esquisse package dynamically from the server.
Here is a simple version of my app that's not working.
library(shiny)
library(esquisse)
ui = fluidPage(
uiOutput("esquisse")
## this works
#esquisserUI("input")
)
server = function(input, output){
data = reactiveValues(data = mtcars, name = "mtcars")
output$esquisse = renderUI({
esquisserUI("input")
})
callModule(esquisserServer, id = "input", data = data)
}
shinyApp(ui, server)
The error returned is Warning: Error in if: argument is of length zero [No stack trace available]
I think the esquisseUI is not getting rendered.
Looking forward to getting a solution from you guys. Thanks in advance.
Best regards,
Zauad Shahreer