I understand we can write loop in server.R, but are we able to have loop in ui.R?
My need for loop in ui.R is this:
say if user selects certain input from pull-down menu with value=1, I want the width of my dygraph to be 12, otherwise with pull-down menu with value=0, I want the width of my dygraph to be 6.
If loop is not able to be achieved in ui.R, how can I achieve the above?