I've made some learnr tutorials which my statistics students interact with through an RStudio workbench server.
The issue is that student don't always remember to stop the tutorial, so their instance of RStudio is running on the server even when they close their browser. This uses memory resources.
I'd like to have the tutorial turn off automatically after say 30 minutes. How can I do that?
@nirgrahamuk, Thanks for your post, this is an interesting idea...
I'm new at programming. I pasted your code into a script and got that to run, and I mostly understand what it does.
How can I implement this in a specific learnr .rmd?
I've tried pasting your example to the setup chunk of a learnr .rmd but the tutorial does not stop. Please excuse my ignorance, I appreciate any guidance.