fetch_output_file_ids: Return output from a civis_script.

View source: R/scripts.R

fetch_output_file_idsR Documentation

Return output from a civis_script.

Description

Return output from a civis_script.

Usage

fetch_output_file_ids(x, regex = NULL)

fetch_output(x, regex = NULL)

Arguments

x

civis_script

regex

string, regex used to match the run output name.

Details

If the script has no outputs, the results are a list of length is 0.

Value

A named list of run output file ids with names matching regex.

Functions

  • fetch_output(): Return output of scripts_list_*_runs_outputs matching regex.

See Also

Other script_utils: civis_script(), run_civis(), run_template()

Other script_utils: civis_script(), run_civis(), run_template()

Examples

## Not run: 
out <- fetch_output(civis_script(1234))

# Filter output with regex, then read into memory:
ids <- fetch_output_file_ids(civis_script(1234), regex = '.csv')
vals <- lapply(ids, read_civis, using = read.csv)

## End(Not run)

civis documentation built on April 1, 2023, 12:01 a.m.