Helper function for creating a worker environment. This function exists to create a function suitable for passing to rrq_worker_envir_set for the common case where the worker should source some R scripts and/or load some packages on startup. This is a convenience wrapper around defining your own function, covering the most simple case. If you need more flexibility you should write your own function.
rrq_envir(packages = NULL, sources = NULL)
An optional character vector of
An optional character vector of scripts to read. Typically these will contain just function definitions but you might read large data objects here too.
A function suitable for passing to rrq_worker_envir_set, which can set (or update) the environment for your workers.