Reputation: 32426
Whenever I run a shiny app from ESS, it works, but I can't get the prompt back without killing the whole R session (like clicking the "Stop" button in RStudio). The normal Ctrl-C Cntrl-C
, or Cntl-g
don't work. So, I have to resort to Cntrl-x k
. How do I kill the shiny process without killing R?
Upvotes: 2
Views: 1373
Reputation: 32426
Well, I finally found out the reason. I had the option
(setq comint-prompt-read-only t)
set somewhere in my init files. Apparently, when this option is set it becomes impossible (well, beyond me anyway) to send a kill signal to the R process. I don't understand what is happening though. If I run a server directly from httpuv
I can kill it even with the option set, but not when running an app through shiny
.
Upvotes: 3