Run a Shiny gadget without blocking console input

Hey everyone,

I’ve created a Shiny gadget and I’m hoping to improve it. Specifically, I would like to know if it is possible to run a gadget without it blocking the R console. When the gadget is run, R starts to listen, which prevents the user from using the console while the gadget is open.

I know that blogdown has the feature I want. In blogdown you can preview your blog in the Viewer AND it allows the user to run additional R code.

Does anyone know how to achieve this?