Skip to contents

Writes a validated signal policy. The format is inferred from the .json or .csv extension unless format is supplied explicitly.

Usage

cs_write_signal_policy(policy, path, format = NULL)

Arguments

policy

A cs_signal_policy object.

path

Destination file path.

format

Either "json" or "csv"; by default inferred from path.

Value

policy, invisibly.

Examples

path <- tempfile(fileext = ".json")
cs_write_signal_policy(cs_signal_policy("CD3e"), path)