I am creating an intro to R tutorial with learnr:tutorial. One thing I have is an empty R window so people can play around with it as a basic calculator. When I go back to the shinyapps page it often has the previous code in the window that I was playing with.
Is there a way in learnr to say the first time you run this app clear all the contects?
I'm not familiar with
learnrbut inshinyyou can set:to make sure a fresh session is started.
Please see this:
https://shiny.rstudio.com/articles/reconnecting.html
Btw. are you aware that you can spaw R sessions in Google Colab?:
https://colab.to/r