I'm trying to create a conditional panel in Shiny based on the length of an input (character string) vector. Specifically, I have a fileInput widget (e.g. Id = FILEWIDGET
), and I want to render a conditional panel only if the number of uploaded files is <= 1. I don't speak javascript, but the conditional written in R would look like:
conditionalPanel(condition = input$FILEWIDGET$name <= 1 , ...)
Hopefully this is a straightforward question for those familiar with JS. Thanks in advance.