DEV Community

Martin Modrák
Martin Modrák

Posted on • Originally published at martinmodrak.cz on

5

Launch Shiny App Without Blocking the Session

This is a neat trick I found on Tyler Morgan-Wall’s Twitter and is originally attributed to Joe Cheng. You can run any Shiny app without blocking the session. My helper function to run ShinyStan without blocking is below:

launch_shinystan_nonblocking <- function(fit) {
  library(future)
  plan(multisession)
  future(
    launch_shinystan(fit) #You can replace this with any other Shiny app
  )
}
Enter fullscreen mode Exit fullscreen mode

Hope that helps!

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay