How about this approach? I tried this example
http://shiny.rstudio.com/articles/html-ui.html to build UI with html code.
In this example, when I change from <select name="dist"> to <select name="dist" disabled=true>
and change from <input type="number" name="n" value="500" min="1" max="1000" /> to
<input type="number" name="n" value="500" min="1" max="1000" disabled=true />
it behaves exactly like what I want and need. So the question is: how can I use selectInput() and numericInput() to specify the "disabled" attribute? Then I can use renderUI() to change it.
I think I could figure this out using the shiny::tags to bypass using selectInput() and numericInput() and specify the attribute. But this seems like it should just be a simple option to the *Input() functions. Also, I'm trying to figure this out on behalf of other folks writing Shiny apps, who would rather keep it at the easier level of using selectInput() and numericInput() level rather than delving into custom HTML code.
Jonathan