I have a shiny app with a lot of different outputs (data preparation functions, clustering, modeling etc.), and when the user uploads a file some of them start calculating. Therefore there is a problem when he decides to upload a different file without refreshing the page: due to bad architecture a lot of outputs that depend on reactives crash the app. So here is a question: is there a way to clear cache
(if you can call it so) in a shiny app?