Skip to content

Conversation

@krystianll
Copy link

I propose the addition of stopApp(). It will ensure that whenever user closes the window when running the session locally, the shiny app and the server will be terminated. It is most visible when running from R Console or from Terminal using Rscript, which are still busy even after user closes the browser tab.

I should probably add that this shouldn't be added to a publicly accessible, server-deployed app since closing the window will kill the whole app for every on-line user.

I propose the addition of stopApp(). It will ensure that whenever user closes the window when running the session locally, the shiny app and the server will be terminated. It is most visible when running from R Console or from Terminal using Rscript, which are still busy even after user closes the browser tab.

I should probably add that this shouldn't be added to a publicly accessible, server-deployed app since closing the window will kill the whole app for every on-line user.
@MichaelaEBI
Copy link
Collaborator

Thank you for this @krystianll - I apologise, we did not see your pull request until now. We will have to think about this since we deploy this version of the app to a server. We might have to have start maintaining two versions of the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants