Shiny: insert/remove UI, individually and globally
问题 The following shiny code allows us to insert and remove UI individually. The question about removing individually the UI elements was answered here. Then I wanted to delete all inserted UI in a global manner. And I found a useful answer here. So there are two actions of deletion, you can see them in the code with the comments Individual deletion: it will delete the nth UI added. Global deletion: the idea is to "reinitialize" the app. For my app, I will just use the action of changing tabs to