Is there no difference? And if there is this may be too simplistic a case to see the difference? If possible, what would be a good example of a use case where one is slower than the other?
Assume we build shiny application for visualize some grouped data.
Make bar plot as group will not difficult as ggplot exists.
however if we want to generate table by group. it's really different problem now, since shiny application doesn't know How many number of table should generated before read data.
so to handle this problem, shiny should generate table elementdynamically. and I belive that's one of purpose of renderUI.
Thanks! I realize the use cases are different, I was just curious from a theoretical standpoint. Thank you! (And also sorry about the radio buttons typo, I was playing with which input to use for the reprex )