Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Killing Rscript.exe within the appname.bat #44

Open
Shaunson26 opened this issue Mar 31, 2022 · 1 comment
Open

Killing Rscript.exe within the appname.bat #44

Shaunson26 opened this issue Mar 31, 2022 · 1 comment

Comments

@Shaunson26
Copy link

I've had issues with 1) failing shiny apps (my own poor code) and 2) runtime:shiny rmds, in that when i close the browser, rscript.exe appears to still be running - is this the zombie process you mention? If i add:
taskkill /IM "Rscript.exe" /F
to the first linke of appname.bat then this solves the issue as it kills all Rscript instances. However, it assumes you dont have any other Rscript instances occurring for other reasons.

@nev-awaken
Copy link

Make sure you add the below code in the server function or server.R and this should fix the problem

session$onSessionEnded(function() {stopApp()})

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

No branches or pull requests

2 participants