0

Using Rgui.exe, after submitting the lines below:

library(shiny)
runExample()
runExample('01_hello')

How is it possible to release the R interpreter without having to type ESC?

In other words, I'm looking for something similar to session$onSessionEnded, so that when the browser tab is closed, the R interpreter is released to receive new instructions.

Is there any possibility? I consider using ESC an abnormal way to kill a process.

Best,

jcfaria
  • 312
  • 3
  • 14
  • R is single threaded. Either you create a built-in solution into your shiny app (e.g. using `stopApp()`) or you spawn your shiny app in a seprate process e.g. via library([callr](https://stackoverflow.com/questions/69477375/how-can-i-combine-two-shiny-apps/69477973#69477973)). – ismirsehregal Apr 03 '23 at 11:49

0 Answers0