Skip to contents

tfl_read_output() reads spec/outputs/<id>.yml: the !r and !unset tags become tfl_r() and tfl_unset(), a {fn:, args:} map a tfl_call(), and each item of content: (- plan_cells: {...}) a tfl_item() with from = "own". A file whose top is outputs: holds several reports (a family written in one go): a list of them comes back, each with the file's base: merged under it as a plain list (the layering with defaults is not done here). tfl_write_output() writes one report back in the same form.

Usage

tfl_read_output(path)

tfl_write_output(x, path)

Arguments

path

The file.

x

A tfl_output.

Value

tfl_read_output(): a tfl_output, or a list of them. tfl_write_output(): path, invisibly.

Examples

f <- system.file("extdata", "spec-yaml", "outputs", "T-14-1-1.yml", package = "tflspec")
out <- tfl_read_output(f)
out$content[[1]]
#> <tfl_item> table_plan(cols, rows)