Skip to contents

The reverse of tech_from_spec(): slot tables become row lists (all-NA columns and empty tables are omitted; NA dimension values are omitted from rows, i.e. read back as "applies to ALL").

Usage

tech_to_spec(tech, file = NULL)

Arguments

tech

A technology object.

file

Optional path; when given, the spec is written as YAML, or as JSON when the path ends in .json (same structure, an alternative container).

Value

The spec list (invisibly when file is given).