
Freeze a supported synthesis policy for repeated generation
Source:R/generator-api.R
freeze_synthesis.RdFits the dependency-free internal generator while the source data are in a human-controlled session, writes the fitted state to a private store, and returns a source-free handle containing the public contract and opaque references. The fitted state is not included in the returned object.
Usage
freeze_synthesis(
data,
spec,
roles = NULL,
allowed = generation_limits(),
store = NULL
)Arguments
- data
A data frame to use during the one-time fitting operation.
- spec
A
dataganger_speccreated bysynth_spec()withengine = "internal".- roles
A
dataganger_rolesobject. IfNULL, roles are detected fromdatabefore fitting.- allowed
A
dataganger_generation_limitsobject defining permitted seed, row-count, and dataset-count ranges.- store
A persistent private store path or an existing private store object. It must be supplied explicitly so the handle can be reopened in a later R session.
Value
A dataganger_frozen_generator handle. Save this handle with
saveRDS() if it must be reopened in a later R session.