I am using learnr which to my knowledge is essentially shiny.
I use learnr to create an online R command window I can put on my canvas site for a sandbox for the students. Often when I go to the app the previous output is still there. Is there a refresh command so that each time I go to the app it resets it to its original form?