I'm almost done with my project and I'm trying to do some aesthetic changes to my app in order to be more user friendly and attractive.
Since my app requires to upload a table in order to work, I thought it would be better if I put a stand alone large upload button in the middle of the screen and then a navigation bar would appear with the results, plots, downloads would appear.
Here's what I've tried:
fileInput("file","Upload the file")
tabPanel("Wavelet Coefficients", htmlOutput("tmod1"),
tabPanel("Wavelet Plot", plotOutput("plot")),
tabPanel("About file", tableOutput("filedf"))
ERROR: D:\OneDrive\MODWT App/ui.R:7:1: unexpected 'if'
To dynamically add or remove UI elements in Shiny you should use the built-in dynamic UI functions such as
You'll move the logic from your
if statement to the
condition argument of
There are a few other functions like that which you can read about here and you can also use custom JS.