Skip to contents

Removes the survey attached under wave from a Project object stored in S3 and writes the updated object back. Waves are unique within a project (see dl_project_attach_survey()), so one call removes one entry. Legacy projects can still hold several surveys under one wave; those are all removed together.

Usage

dl_project_detach_survey(
  wave = NA_character_,
  project = dl_get_project(),
  env = "prod"
)

Arguments

wave

Character. Wave label of the survey to detach. NA_character_ (the default) targets the wave-less survey.

project

Character. Project ID to load from S3. Defaults to dl_get_project(). Must refer to an existing project initialized with dl_project_init().

env

Datalake environment ("prod" or "test"). Default "prod".

Value

The updated Project object (invisibly).

Examples

if (FALSE) { # \dontrun{
dl_project_detach_survey(wave = "w1")
dl_project_detach_survey() # detaches the wave-less survey
} # }