Skip to contents

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"
)

Arguments

env_vars

named list of environment variables

if_expr

deparsed if expression

run_expr

deparsed run expression

shell

string setting the shell, default is callr

Value

function