Write a raw PMO nested list to a file
write_pmo_raw.RdWrites a PMO represented as nested R lists back to JSON, reapplying
JSON-facing conventions such as zero-based _id fields.
Arguments
- x
A nested list as returned by
read_pmo_raw().- path
Output path.
- pretty
Logical; pretty-print the JSON.
- auto_unbox
Logical; passed to
jsonlite::toJSON().
Examples
raw <- read_pmo_raw(
system.file('extdata', 'example_pmo.json.gz', package = 'pmotoolsr'))
write_pmo_raw(raw, tempfile(fileext = '.json.gz'))