Resolve a portable weight specification to a usable weight configuration
Source:R/utils.R
resolve_weight_spec.RdConverts the portable weight_spec from a RecipeWorkflow back into the
format expected by load_survey() and add_weight().
For replicate weights with ANDA sources, automatically downloads the
replicate file.
Usage
resolve_weight_spec(weight_spec, dest_dir = tempdir())See also
Other weights:
add_replicate(),
add_weight()
Examples
if (FALSE) { # \dontrun{
wf <- api_get_workflow("w_123")
weight <- resolve_weight_spec(wf$weight_spec)
} # }