Multi Process Task Queue in 100 Lines of R Code
This article is originally published at https://www.tidyverse.org/blog/PRE.fansi SPAN {padding-top: .25em; padding-bottom: .25em}; Introduction This post is a demo of callr::r_session, a persistent R session you can use to run R code asynchronously. I set out to build a task queue, which runs tasks in subprocesses, concurrently, in a mere 100 lines of R code. Here is a short teaser for how the queue will work. task_q$new() creates a new R6 object, which represents the queue.
Thanks for visiting r-craft.org
This article is originally published at https://www.tidyverse.org/blog/
Please visit source website for post related comments.