Creates an function that sets local environment variables env
, does nothing if if_expr
evaluates
to false and otherwise evaluates run_expr
transparently. If shell is not callr
then the run_expr
gets
wrapped in a system()
command to execute the shell.
Usage
job_make_remote_fun(
env_vars = list(),
if_expr = NULL,
run_expr = NULL,
shell = "callr"
)