Register a function to create an environment when creating a worker. When a worker starts, they will run this function.
rrq_worker_envir_set(create, notify = TRUE, controller = NULL)
A function that will create an environment. It will
be called with one parameter (an environment), in a fresh R
session. The function rrq_envir()
can be used to
create a suitable function for the most common case (loading
packages and sourcing scripts).
Boolean, indicating if we should send a REFRESH
message to all workers to update their environment.
The controller to use. If not given (or NULL
)
we'll use the controller registered with
rrq_default_controller_set()
.