Evaluate an R expression in a Civis Platform container

run_civis(expr, ...)

Arguments

expr

code to evaluate

...

arguments to CivisFuture

Details

run_civis blocks until completion. For non-blocking calls, use futures directly with civis_platform. Attempts are made at detecting and installing necessary packages within the container, and detecting global variables required in expr.

See also

Examples

# NOT RUN {
run_civis(2+2)

# specify required resources, and a specific image
run_civis(2+2,
  required_resources = list(cpu = 1024, memory = 2048),
  docker_image_name='image',
  docker_image_tag = 'latest')

# }