Skip to contents

Get survey data from source and, optionally, update the data/srv_source data. The function prerequisite is properly configured project object which contains survey information such as survey source type (e.g., forsta or qualtrics), external ID as well as the project name. Optionally, project object also contains direct survey data. For more information see ?g6tr.dl::Project.

Usage

step_srv_source(
  wave = NA_character_,
  update_source = TRUE,
  project = g6tr.dl::dl_get_project()
)

Arguments

wave

Character. Name of the wave. Defaults to NA_character_.

update_source

Logical. Update data/srv_source data. Defaults to TRUE.

project

Name of the project or full Project object. If NULL, the current project is used from Name field in the DESCRIPTION file.

Examples

if (FALSE) { # \dontrun{

# Prerequisites: you need to set up a project and attach surveys! ?Project 
# To read source data, just provide project ID
step_srv_source(project = "genie")
step_srv_source(project = "genie", update_source = FALSE)
} # }