Evaluate an R expression in a Civis Platform container
run_civis(expr, ...)
| expr | code to evaluate |
|---|---|
| ... | arguments to |
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.
Other script_utils:
civis_script(),
fetch_output_file_ids(),
run_template()
if (FALSE) { 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') }