R shiny future: plan(multiprocess)/plan(multicore) + Kill long running process

风格不统一 提交于 2019-12-05 07:59:50

A couple problems here:

  1. You are missing library(promises), plan(multicore) and library(ipc).
  2. fut is not a future, it is a promise because of the %...>%, so stopMulticoreFuture won't work on it.
  3. The ObserveEvent expression needs to return something other than the promise, otherwise your UI will block.
  4. Since stopMulticoreFuture just kills the process, I can't assure you that it will work with system calls that create subprocesses. You may need to figure out the pid values for these and kill them yourself.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!