Reset text output from R in spotfire

I have written a code to generate texts based on certain conditions in Spotfire using R. The code refreshes automatically whenever a selection is made. Since there are a lot of if-else condition used in R, the code takes a noticeable time to refresh the content. The dashboards change but the text changes after a lag.

Is there anyway to reset the text output while the R code runs so that the user doesn't get confused?

(1) Answer