DesktopDeployR icon indicating copy to clipboard operation
DesktopDeployR copied to clipboard

Killing Rscript.exe within the appname.bat

Open Shaunson26 opened this issue 2 years ago • 1 comments

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.

Shaunson26 avatar Mar 31 '22 13:03 Shaunson26

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

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

nev-awaken avatar Sep 05 '23 00:09 nev-awaken