A thin wrapper around dl_write() for writing survey design objects to the
standardized datalake structure under "designs/{model_type}".
Usage
dl_write_design(
x,
model_type = c("conjoint", "maxdiff", "segmentation", "brand", "list_experiment",
"appraise", "other"),
name = NULL,
version = NULL,
wave = NULL,
overwrite = TRUE,
verify = TRUE,
verbose = TRUE,
project = dl_get_project(),
env = "prod"
)Arguments
- x
Object to upload (tibble, model, or list).
- model_type
Character scalar defining the model category. Must be one of
"conjoint","maxdiff","segmentation","brand","list_experiment","appraise"or"other".- name
Optional character scalar defining the design name. Can be
NULL.- version
Optional character scalar defining the design version. Can be
NULL.- wave
Optional character scalar defining the survey wave.
- overwrite
Logical. If
FALSE, prompts before overwriting existing file. Default isTRUE.- verify
Logical. If
TRUE, reads object back after upload and checks if identical to the input. Default isTRUE.- verbose
Logical. If
TRUE, prints information about the process. Default isTRUE.- project
Character scalar defining the project name. If
NULL, inferred from DESCRIPTION file (Packagefield).- env
Environment of the datalake to use. Must be
"prod"or"test". Defaults to"prod"."prod"writes tog6tr-dl,"test"tog6tr-dl-test.