httpgd
httpgd copied to clipboard
Cannot suspend shiny app once an httpgd device is created
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
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?
I tried the latest master branch of httpgd on macOS and the problem still persists.
Thank you for testing. I will investigate further.