nx10 / httpgd

Asynchronous http server graphics device for R.
https://nx10.github.io/httpgd
GNU General Public License v2.0
368 stars 19 forks source link

Cannot suspend shiny app once an httpgd device is created #108

Open renkun-ken opened 2 years ago

renkun-ken commented 2 years ago

Describe the bug

As long as I create an httpgd device before running a shiny app, I cannot use control-c to suspend the shiny app and let the command line go back to user input.

To Reproduce

httpgd::hgd()
shiny::runExample("01_hello")
# now press control-c but the shiny app cannot be suspended.

Expected behavior

Creating httpgd device should not make the shiny app un-suspendable.

Environment

nx10 commented 2 years ago

Thank you for opening the issue.

I could not replicate this for httpgd 1.3 on windows, but it does happen with 1.3 on linux. I suspect this is some platform specific bug with later which both httpgd 1.3 and shiny uses.

It does not happen in the development version (master branch) of httpgd of linux. (Where I replaced later recently with a custom solution) Could you check if it also works for macOS with the development version of httpgd?

renkun-ken commented 2 years ago

I tried the latest master branch of httpgd on macOS and the problem still persists.

nx10 commented 2 years ago

Thank you for testing. I will investigate further.