httpgd icon indicating copy to clipboard operation
httpgd copied to clipboard

Cannot suspend shiny app once an httpgd device is created

Open renkun-ken opened this issue 2 years ago • 3 comments

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

  • OS: macOS 12.3.1
  • Browser: Firefox 99.0.1
  • R version: 4.1.3
  • httpgd version: 1.3.0

renkun-ken avatar Apr 23 '22 00:04 renkun-ken

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?

nx10 avatar Apr 23 '22 11:04 nx10

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

renkun-ken avatar Apr 23 '22 12:04 renkun-ken

Thank you for testing. I will investigate further.

nx10 avatar Apr 23 '22 13:04 nx10