rrq_worker_envir_set | R Documentation |
Register a function to create an environment when creating a
worker. When a worker starts, they will run this function. The
function rrq_worker_envir_refresh
asks the worker to reload
the copy of the already specified environment (e.g., to pick up
changes to source files).
rrq_worker_envir_set(create, notify = TRUE, controller = NULL)
rrq_worker_envir_refresh(controller = NULL)
create |
A function that will create an environment. It will
be called with one parameter (an environment), in a fresh R
session. The function |
notify |
Boolean, indicating if we should send a |
controller |
The controller to use. If not given (or |
obj <- rrq_controller("rrq:example")
rrq_worker_envir_set(rrq_envir(packages = "ids"), controller = obj)
t <- rrq_task_create_expr(search(), controller = obj)
rrq_task_wait(t, controller = obj)
rrq_task_result(t, controller = obj)
rrq_worker_log_tail(n = 5, controller = obj)
rrq_worker_envir_set(NULL, controller = obj)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.