Is it possible to stop executing of R code inside shiny (without stopping the shiny process)?

前端 未结 5 838
夕颜
夕颜 2020-12-03 03:26

Let\'s say I have a shiny app that has a function that can take a long time to run. Is it possible to have a \"stop\" button that tells R to stop the long-running call, wit

5条回答
  •  醉话见心
    2020-12-03 03:41

    Absolutely! future + ipc + promises worked well for me personally.

    See https://cran.r-project.org/web/packages/ipc/vignettes/shinymp.html#killing-a-long-running-process

提交回复
热议问题